diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-03-10 10:39:22 +0100 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-03-10 16:09:44 +0100 |
commit | 4c7f8981e8b9919529707be03015601a29ed7a08 (patch) | |
tree | 45e5c562c31bcf21232ae8adc2a93db23823c107 /crypto/err/err_prn.c | |
parent | 041a96e7acc89685228980b5615a53bee7f07b0f (diff) |
fix two mistakes w.r.t. ERR_LIB_* parameters in ERR_add_error_txt()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11142)
Diffstat (limited to 'crypto/err/err_prn.c')
-rw-r--r-- | crypto/err/err_prn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/err/err_prn.c b/crypto/err/err_prn.c index 9a5889829d..1647d93043 100644 --- a/crypto/err/err_prn.c +++ b/crypto/err/err_prn.c @@ -68,7 +68,7 @@ void ERR_add_error_txt(const char *separator, const char *txt) if (separator == NULL) separator = ""; if (err == 0) - put_error(ERR_LIB_CMP, NULL, 0, "", 0); + put_error(ERR_LIB_NONE, NULL, 0, "", 0); do { size_t available_len, data_len; @@ -125,7 +125,7 @@ void ERR_add_error_txt(const char *separator, const char *txt) ERR_add_error_data(2, separator, tmp); OPENSSL_free(tmp); } - put_error(ERR_LIB_CMP, func, err, file, line); + put_error(ERR_GET_LIB(err), func, err, file, line); txt = curr; } else { if (trailing_separator) { |