]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for auth zone nsec3 ent fix for wildcard nodata.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Apr 2019 14:28:36 +0000 (14:28 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Apr 2019 14:28:36 +0000 (14:28 +0000)
git-svn-id: file:///svn/unbound/trunk@5144 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/authzone.c

index 6740be1e847b1ac663ff9c955ffa6b52b5c7c32d..cabc5397031181ad594a43dc347e63ef83f5b702 100644 (file)
@@ -3,6 +3,7 @@
          match nsec3 records.
        - Fix for out of bounds integers, thanks to OSTIF audit.  It is in
          allocation debug code.
+       - Fix for auth zone nsec3 ent fix for wildcard nodata.
 
 25 March 2019: Wouter
        - Fix that tls-session-ticket-keys: "" on its own in unbound.conf
index 9a8afd6ff74bb6952b75e2be2a1d236bba9175d7..7d52b2aa6610f1ed34e010cf7d902e6b4a3133c2 100644 (file)
@@ -2646,19 +2646,6 @@ az_nsec3_findnode(struct auth_zone* z, uint8_t* hashnm, size_t hashnmlen)
        return node;
 }
 
-/** Find exact match (or NULL) */
-static struct auth_data*
-az_nsec3_find_exact_match(struct auth_zone* z, uint8_t* nm, size_t nmlen,
-       int algo, size_t iter, uint8_t* salt, size_t saltlen)
-{
-       uint8_t hname[LDNS_MAX_DOMAINLEN];
-       size_t hlen = sizeof(hname);
-       if(!az_nsec3_hashname(z, hname, &hlen, nm, nmlen, algo, iter,
-               salt, saltlen))
-               return NULL;
-       return az_nsec3_findnode(z, hname, hlen);
-}
-
 /** Find cover for hashed(nm, nmlen) (or NULL) */
 static struct auth_data*
 az_nsec3_find_cover(struct auth_zone* z, uint8_t* nm, size_t nmlen,
@@ -2783,7 +2770,7 @@ az_add_nsec3_proof(struct auth_zone* z, struct regional* region,
                /* see if the node has a hash of itself for the nodata
                 * proof nsec3, this has to be an exact match nsec3. */
                struct auth_data* match;
-               match = az_nsec3_find_exact_match(z, qname, qname_len, algo,
+               match = az_nsec3_find_exact(z, qname, qname_len, algo,
                        iter, salt, saltlen);
                if(match) {
                        if(!az_nsec3_insert(z, region, msg, match))