Fix for sniffer with SNI enabled to properly handle WOLFSSL_SUCCESS error code in ProcessClientHello. ZD 10926

This commit is contained in:
David Garske
2020-09-21 14:33:42 -07:00
parent adedde7d16
commit bc960a9c25

View File

@ -3000,6 +3000,10 @@ static int ProcessClientHello(const byte* input, int* sslBytes,
}
wc_UnLockMutex(&session->context->namedKeysMutex);
}
if (ret > 0) {
/* make sure WOLFSSL_SUCCESS is converted to zero error code */
ret = 0;
}
}
#endif