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 */