]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove invalid REQUIRE in NSEC3 fromstruct method
authorMark Andrews <marka@isc.org>
Tue, 24 Feb 2026 02:30:43 +0000 (13:30 +1100)
committerOndřej Surý <ondrej@sury.org>
Tue, 24 Feb 2026 13:58:18 +0000 (14:58 +0100)
The NSEC3 fromstruct method only worked for hash type 1
when it should work for all hash types.

lib/dns/rdata/generic/nsec3_50.c

index eb06507d8d9dfaf3c951de325ec3272256dfd38e..9429d5dd4fdb5d7b1de052bee873514fe3b7d6ba 100644 (file)
@@ -287,7 +287,6 @@ fromstruct_nsec3(ARGS_FROMSTRUCT) {
        REQUIRE(nsec3->common.rdtype == type);
        REQUIRE(nsec3->common.rdclass == rdclass);
        REQUIRE(nsec3->typebits != NULL || nsec3->len == 0);
-       REQUIRE(nsec3->hash == dns_hash_sha1);
 
        UNUSED(type);
        UNUSED(rdclass);