mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
src/internal.c: in wolfSSL_ERR_reason_error_string(), return "unknown error number" when error==0 and !OPENSSL_EXTRA, to avoid provoking clang-analyzer-optin.core.EnumCastOutOfRange.
This commit is contained in:
@ -25165,11 +25165,13 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
|
||||
return wc_GetErrorString(error);
|
||||
}
|
||||
|
||||
#ifdef OPENSSL_EXTRA
|
||||
if (error == 0) {
|
||||
#ifdef OPENSSL_EXTRA
|
||||
return "ok";
|
||||
}
|
||||
#else
|
||||
return "unknown error number";
|
||||
#endif
|
||||
}
|
||||
|
||||
switch ((enum wolfSSL_ErrorCodes)error) {
|
||||
|
||||
|
Reference in New Issue
Block a user