diff --git a/src/tls.c b/src/tls.c index d6b8815d2..61643f0c7 100644 --- a/src/tls.c +++ b/src/tls.c @@ -4852,7 +4852,7 @@ static int TLSX_SecureRenegotiation_Parse(WOLFSSL* ssl, byte* input, } #endif } - else { + else if (ssl->secure_renegotiation != NULL) { #ifndef NO_WOLFSSL_CLIENT if (!ssl->secure_renegotiation->enabled) { if (*input == 0) {