From 2678a3b981aeffa8fdcdf10f34a58a6f8f253706 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 15 Oct 2021 18:55:30 +0200 Subject: [PATCH] #67 --- src/keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keys.c b/src/keys.c index 19ae349ed..654ac071a 100644 --- a/src/keys.c +++ b/src/keys.c @@ -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 */