]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for crypto related failures to have a better error string.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Mar 2024 08:58:57 +0000 (09:58 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Mar 2024 08:58:57 +0000 (09:58 +0100)
doc/Changelog
util/net_help.c

index 0c43e2a5e20a599ae8ea535338a6dfec85ed3c35..6392055cdb6c1c970bfe35caed7188a676bf40ae 100644 (file)
@@ -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.
index 8970247926d75be28e8aa7988e45177509231d58..f38d843ed3ca64aa0c5bb3908fa5071e52a30caa 100644 (file)
@@ -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);
                }
        }
 }