From 4e8f5fce66e43250621981e2ac8385045d734a03 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Thu, 28 May 2020 12:17:29 -0500 Subject: [PATCH] Fix NULL dereference error --- src/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {