]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
zonemd, fix to harden against failure in pickup zonemd lookups.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 22 Oct 2020 11:20:00 +0000 (13:20 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 22 Oct 2020 11:20:00 +0000 (13:20 +0200)
services/authzone.c

index 4adf90c4f2e6d75477d2787d39925525eb254b34..29780e72f3e37cc69a9dc9f28ade5b3fac4044ab 100644 (file)
@@ -8171,6 +8171,8 @@ void auth_zones_pickup_zonemd_verify(struct auth_zones* az,
                key.namelen = savezname_len;
                key.name = savezname;
                z = (struct auth_zone*)rbtree_search(&az->ztree, &key);
+               if(!z)
+                       break;
        }
        lock_rw_unlock(&az->lock);
 }