Merge pull request #18 from keeshux/interpret-zero-reneg-seconds

Interpret 0 reneg seconds as never
This commit is contained in:
Davide De Rosa 2018-09-07 15:00:12 +02:00 committed by GitHub
commit 7898b940a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {