This commit is contained in:
Juliusz Sosinowicz
2021-10-15 18:55:30 +02:00
parent e97e8bc7d0
commit 2678a3b981

View File

@ -3025,7 +3025,8 @@ int SetKeysSide(WOLFSSL* ssl, enum encrypt_side side)
(void)copy;
#ifdef HAVE_SECURE_RENEGOTIATION
if (ssl->secure_renegotiation && ssl->secure_renegotiation->cache_status) {
if (ssl->secure_renegotiation &&
ssl->secure_renegotiation->cache_status != SCR_CACHE_NULL) {
keys = &ssl->secure_renegotiation->tmp_keys;
#ifdef WOLFSSL_DTLS
/* For DTLS, copy is done in StoreKeys */