TLS: Reset handshake SecurityParameters _after_ notifyHandshakeComplete
@@ -76,9 +76,10 @@ synchronized void handshakeComplete(TlsPeer peer, TlsSession session) throws IOE
this.session = session;
securityParametersConnection = securityParametersHandshake;
- securityParametersHandshake = null;
peer.notifyHandshakeComplete();
+
+ securityParametersHandshake = null;
}
public TlsCrypto getCrypto()
