]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix zonemd unsupported algo check reason to not copy to next record,
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 08:54:57 +0000 (10:54 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 08:54:57 +0000 (10:54 +0200)
  and check for success for debug printout.

doc/Changelog
services/authzone.c

index ba9926210a2659fbbd1e32764ab8fd4f3673e9c8..2319920e415a32cb5bcd41cac447facc5cf8bb66 100644 (file)
@@ -4,6 +4,8 @@
          and no failed or successful other ZONEMD records, or malformed
          or bad ZONEMD records, the unsupported records allow the zone load.
        - Fix zonemd unsupported algo check.
+       - Fix zonemd unsupported algo check reason to not copy to next record,
+         and check for success for debug printout.
 
 25 March 2022: Wouter
        - Fix spelling error in comment in sldns_str2wire_svcparam_key_lookup.
index c39ce9763669bcc64780585087bb62eec15d4876..b10d458596b97af68b4fc1d2e8accee6565def04 100644 (file)
@@ -1938,6 +1938,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z,
                        if(*reason) {
                                if(!unsupported_reason)
                                        unsupported_reason = *reason;
+                               *reason = NULL;
                                /* continue to check for valid ZONEMD */
                                if(verbosity >= VERB_ALGO) {
                                        char zstr[255+1];
@@ -1949,7 +1950,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z,
                        if(verbosity >= VERB_ALGO) {
                                char zstr[255+1];
                                dname_str(z->name, zstr);
-                               if(!reason)
+                               if(!*reason)
                                        verbose(VERB_ALGO, "auth-zone %s ZONEMD hash is correct", zstr);
                        }
                        return 1;