]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for neater printout for error for missing DS response.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 5 Jul 2024 06:49:52 +0000 (08:49 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 5 Jul 2024 06:49:52 +0000 (08:49 +0200)
doc/Changelog
validator/validator.c

index 2a7cb870d6f2bc65401b46fcefc83f43dd02f9ab..9e4b2f10482378f84da0ba1ec51fa93c4b7ee034 100644 (file)
@@ -1,3 +1,6 @@
+5 July 2024: Wouter
+       - Fix for neater printout for error for missing DS response.
+
 4 July 2024: Wouter
        - Fix to print details about the failure to lookup a DNSKEY record
          when validation fails due to the missing DNSKEY. Also for key prime
index 59226abccd44550f659d2c3dd23ddcdf40608d38..4ed12df67756aa7b61c28e6ec0a41d27579bbec7 100644 (file)
@@ -2798,9 +2798,12 @@ ds_response_to_ke(struct module_qstate* qstate, struct val_qstate* vq,
                errinf(qstate, rc);
                reason = "no DS";
                if(sub_qstate) {
-                       errinf(qstate, "[");
-                       errinf(qstate, errinf_to_str_misc(sub_qstate));
-                       errinf(qstate, "]");
+                       char* err = errinf_to_str_misc(sub_qstate);
+                       if(err) {
+                               char buf[1024];
+                               snprintf(buf, sizeof(buf), "[%s]", err);
+                               errinf(qstate, err);
+                       }
                }
                reason_bogus = LDNS_EDE_NETWORK_ERROR;
                errinf_ede(qstate, reason, reason_bogus);