mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 12:44:45 +02:00
free peer cert overwritten by secure renegotiation
This commit is contained in:
@@ -5652,6 +5652,10 @@ void FreeHandshakeResources(WOLFSSL* ssl)
|
||||
#ifdef HAVE_SECURE_RENEGOTIATION
|
||||
if (ssl->secure_renegotiation && ssl->secure_renegotiation->enabled) {
|
||||
WOLFSSL_MSG("Secure Renegotiation needs to retain handshake resources");
|
||||
#ifdef KEEP_PEER_CERT
|
||||
/* free peer cert in preparation for new handshake */
|
||||
FreeX509(&ssl->peerCert);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user