mirror of https://github.com/wolfSSL/wolfssl.git
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.
parent
13ec0f0694
commit
126df1d9ee
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue