mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
ERR: exempt flags from fallback decimal reason code printing
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/17072)
This commit is contained in:
parent
2349d7ba57
commit
9350aaa41d
@ -527,7 +527,8 @@ void ossl_err_string_int(unsigned long e, const char *func,
|
||||
}
|
||||
#endif
|
||||
if (rs == NULL) {
|
||||
BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r);
|
||||
BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)",
|
||||
r & ~(ERR_RFLAGS_MASK << ERR_RFLAGS_OFFSET));
|
||||
rs = rsbuf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user