From: W.C.A. Wijngaards Date: Thu, 28 Mar 2024 08:58:57 +0000 (+0100) Subject: - Fix for crypto related failures to have a better error string. X-Git-Tag: release-1.20.0rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1aeabde44c597c0319a7531d4cb89d6d900a340;p=thirdparty%2Funbound.git - Fix for crypto related failures to have a better error string. --- diff --git a/doc/Changelog b/doc/Changelog index 0c43e2a5e..6392055cd 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 28 March 2024: Wouter - Fix #1034: DoT forward-zone via unbound-control. + - Fix for crypto related failures to have a better error string. 27 March 2024: Wouter - Fix name of unit test for subnet cache response. diff --git a/util/net_help.c b/util/net_help.c index 897024792..f38d843ed 100644 --- a/util/net_help.c +++ b/util/net_help.c @@ -1026,11 +1026,11 @@ static void log_crypto_err_io_code_arg(const char* str, int r, } else { if(print_errno) { if(errno == 0) - log_err("str: syscall error with errno %s", - strerror(errno)); - else log_err("str: %s", strerror(errno)); + log_err("%s: syscall error with errno %s", + str, strerror(errno)); + else log_err("%s: %s", str, strerror(errno)); } else { - log_err("str: %s", inf); + log_err("%s: %s", str, inf); } } }