]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix zonemd unsupported algo check to print unsupported reason before
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 09:10:11 +0000 (11:10 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 09:10:11 +0000 (11:10 +0200)
  zeroing it.

doc/Changelog
services/authzone.c

index 2319920e415a32cb5bcd41cac447facc5cf8bb66..941246813b238b4caa6d77502f74b7854d4dc0ae 100644 (file)
@@ -6,6 +6,8 @@
        - Fix zonemd unsupported algo check.
        - Fix zonemd unsupported algo check reason to not copy to next record,
          and check for success for debug printout.
+       - Fix zonemd unsupported algo check to print unsupported reason before
+         zeroing it.
 
 25 March 2022: Wouter
        - Fix spelling error in comment in sldns_str2wire_svcparam_key_lookup.
index b10d458596b97af68b4fc1d2e8accee6565def04..e25c5bd845e7a60a4b192ac85755a99d8ba659e1 100644 (file)
@@ -1938,13 +1938,13 @@ 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];
                                        dname_str(z->name, zstr);
                                        verbose(VERB_ALGO, "auth-zone %s ZONEMD %d %d is unsupported: %s", zstr, (int)scheme, (int)hashalgo, *reason);
                                }
+                               *reason = NULL;
                                continue;
                        }
                        if(verbosity >= VERB_ALGO) {