diff --git a/src/sniffer.c b/src/sniffer.c index 89c744fbd..fa27dba65 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -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