Merge pull request #3008 from embhorn/zd10320

Fix possible NULL dereference error in TLSX_SecureRenegotiation_Parse
This commit is contained in:
toddouska
2020-06-02 11:13:17 -07:00
committed by GitHub

View File

@ -4852,7 +4852,7 @@ static int TLSX_SecureRenegotiation_Parse(WOLFSSL* ssl, byte* input,
} }
#endif #endif
} }
else { else if (ssl->secure_renegotiation != NULL) {
#ifndef NO_WOLFSSL_CLIENT #ifndef NO_WOLFSSL_CLIENT
if (!ssl->secure_renegotiation->enabled) { if (!ssl->secure_renegotiation->enabled) {
if (*input == 0) { if (*input == 0) {