]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix zonemd unsupported algo check to set reason to NULL before the
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 09:19:40 +0000 (11:19 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 09:19:40 +0000 (11:19 +0200)
  check routine, but after malformed checks, to get the correct NULL
  output when the digest matches.

doc/Changelog
services/authzone.c

index 941246813b238b4caa6d77502f74b7854d4dc0ae..1fdae1fde8082318050df8b6261900c311bccf41 100644 (file)
@@ -8,6 +8,9 @@
          and check for success for debug printout.
        - Fix zonemd unsupported algo check to print unsupported reason before
          zeroing it.
+       - Fix zonemd unsupported algo check to set reason to NULL before the
+         check routine, but after malformed checks, to get the correct NULL
+         output when the digest matches.
 
 25 March 2022: Wouter
        - Fix spelling error in comment in sldns_str2wire_svcparam_key_lookup.
index e25c5bd845e7a60a4b192ac85755a99d8ba659e1..d3e93a62a53543182481791435c0f5af3d37aef0 100644 (file)
@@ -1932,6 +1932,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z,
                        only_unsupported = 0;
                        continue;
                }
+               *reason = NULL;
                if(auth_zone_generate_zonemd_check(z, scheme, hashalgo,
                        hash, hashlen, region, buf, reason)) {
                        /* success */