]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix zonemd unsupported algo check.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 07:36:01 +0000 (09:36 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 8 Apr 2022 07:36:01 +0000 (09:36 +0200)
doc/Changelog
services/authzone.c

index eee54dfeb62dd990268bc7c5f90af6137591bce3..ba9926210a2659fbbd1e32764ab8fd4f3673e9c8 100644 (file)
@@ -3,6 +3,7 @@
          If there are only unsupported algorithms, or unsupported schemes,
          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.
 
 25 March 2022: Wouter
        - Fix spelling error in comment in sldns_str2wire_svcparam_key_lookup.
index 9b20c3a7b332f73f9c1a0ba585eba8d4faf45854..c39ce9763669bcc64780585087bb62eec15d4876 100644 (file)
@@ -1946,7 +1946,6 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z,
                                }
                                continue;
                        }
-                       only_unsupported = 0;
                        if(verbosity >= VERB_ALGO) {
                                char zstr[255+1];
                                dname_str(z->name, zstr);
@@ -1955,6 +1954,7 @@ static int auth_zone_zonemd_check_hash(struct auth_zone* z,
                        }
                        return 1;
                }
+               only_unsupported = 0;
                /* try next one */
        }
        /* have we seen no failures but only unsupported algo,