From: Dr. David von Oheimb Date: Tue, 10 Mar 2020 09:39:22 +0000 (+0100) Subject: fix two mistakes w.r.t. ERR_LIB_* parameters in ERR_add_error_txt() X-Git-Tag: openssl-3.0.0-alpha1~294 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c7f8981e8b9919529707be03015601a29ed7a08;p=oweals%2Fopenssl.git fix two mistakes w.r.t. ERR_LIB_* parameters in ERR_add_error_txt() Reviewed-by: Matt Caswell Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/11142) --- 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) {