Interpret 0 reneg seconds as never

This commit is contained in:
Davide De Rosa 2018-09-07 01:23:51 +02:00
parent 0b124af8fc
commit 55cdd6227c
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ public class SessionProxy {
}
private func maybeRenegotiate() {
guard let renegotiatesAfter = configuration.renegotiatesAfter else {
guard let renegotiatesAfter = configuration.renegotiatesAfter, renegotiatesAfter > 0 else {
return
}
guard (negotiationKeyIdx == currentKeyIdx) else {