aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_server.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-06-07 22:56:17 +0000
committerlloyd <[email protected]>2012-06-07 22:56:17 +0000
commitd83acdebff0200dc20170eea5844d151785a72b5 (patch)
treece6396a201836b8c1c5fd3af59bfde63758436b5 /src/tls/tls_server.cpp
parent20d88f774fda8b49218293a17add6b716d0a717f (diff)
Cleanup, m_ namespace Secure_Renegotiation_State
Diffstat (limited to 'src/tls/tls_server.cpp')
-rw-r--r--src/tls/tls_server.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp
index 8cdd31074..f8d5894fb 100644
--- a/src/tls/tls_server.cpp
+++ b/src/tls/tls_server.cpp
@@ -287,9 +287,8 @@ void Server::process_handshake_msg(Handshake_Type type,
else
state->set_version(policy.pref_version());
- if(secure_renegotiation.renegotiation() &&
- !secure_renegotiation.supported() &&
- policy.require_secure_renegotiation())
+ if(policy.require_secure_renegotiation() &&
+ !(secure_renegotiation.initial_handshake() || secure_renegotiation.supported()))
{
delete state;
state = nullptr;