Fix for Sniffer with SSLv3 where SNI is not supported. ZD 11169.

This commit is contained in:
David Garske
2020-10-27 11:24:35 -07:00
parent 76e84e0830
commit a43d239271

View File

@@ -3032,7 +3032,8 @@ static int ProcessClientHello(const byte* input, int* sslBytes,
} }
wc_UnLockMutex(&session->context->namedKeysMutex); wc_UnLockMutex(&session->context->namedKeysMutex);
} }
if (ret > 0) { /* SSLv3 does not support the SNI TLS Extension and may return SNI_UNSUPPORTED */
if (ret > 0 || ret == SNI_UNSUPPORTED) {
/* make sure WOLFSSL_SUCCESS is converted to zero error code */ /* make sure WOLFSSL_SUCCESS is converted to zero error code */
ret = 0; ret = 0;
} }