diff options
-rw-r--r-- | src/tls/tls_client.cpp | 2 | ||||
-rw-r--r-- | src/tls/tls_server.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/tls/tls_client.cpp b/src/tls/tls_client.cpp index 098191597..5b1ae1a26 100644 --- a/src/tls/tls_client.cpp +++ b/src/tls/tls_client.cpp @@ -386,6 +386,8 @@ void TLS_Client::process_handshake_msg(Handshake_Type type, if(handshake_fn(session_info)) session_manager.save(session_info); + else + session_manager.remove_entry(session_info.session_id()); secure_renegotiation.update(state->client_finished, state->server_finished); diff --git a/src/tls/tls_server.cpp b/src/tls/tls_server.cpp index 0e26ad31c..109835e4a 100644 --- a/src/tls/tls_server.cpp +++ b/src/tls/tls_server.cpp @@ -395,6 +395,8 @@ void TLS_Server::process_handshake_msg(Handshake_Type type, if(handshake_fn(session_info)) session_manager.save(session_info); + else + session_manager.remove_entry(session_info.session_id()); secure_renegotiation.update(state->client_finished, state->server_finished); |