diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-11-19 11:58:40 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-11-22 14:34:23 +0100 |
commit | 9350aaa41db8fcb0b55dadbd5fbe807ef5288557 (patch) | |
tree | cc1bece6334b51487bd304de94b54ac8341b5c2f /crypto/err/err.c | |
parent | 2349d7ba57c9327290df6f7bc18b7f0c3976ca9e (diff) |
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)
Diffstat (limited to 'crypto/err/err.c')
-rw-r--r-- | crypto/err/err.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c index 60a9b02d19..0f584fdf80 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -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; } |