]> 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@isc.org>
Tue, 24 Feb 2026 15:42:19 +0000 (16:42 +0100)
The NSEC3 fromstruct method only worked for hash type 1
when it should work for all hash types.

(cherry picked from commit f030bc6756c3d4b01fe587205059149d05a4e3b6)

lib/dns/rdata/generic/nsec3_50.c

index b42ab29a5d955b906e74920faed607332eac78db..413a82ef3db12abfd63a4cd5b1528ce0a8a5c3b8 100644 (file)
@@ -288,7 +288,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);