From 26ae39a2170b924049bf670c1884bcb84a901b57 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 4 Jan 2019 13:22:34 -0700 Subject: [PATCH] check if secure renegotiation struct available --- src/internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index a76d664dd..bc9c6a255 100644 --- a/src/internal.c +++ b/src/internal.c @@ -23594,7 +23594,8 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx, ret = TLSX_AddEmptyRenegotiationInfo(&ssl->extensions); if (ret != WOLFSSL_SUCCESS) return ret; - ssl->secure_renegotiation->enabled = 1; + if (ssl->secure_renegotiation) + ssl->secure_renegotiation->enabled = 1; } #endif /* HAVE_SERVER_RENEGOTIATION_INFO */