]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
zonemd, review comments, compare list size for rrsigtype add.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Feb 2021 15:38:39 +0000 (16:38 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Feb 2021 15:38:39 +0000 (16:38 +0100)
services/authzone.c

index 79fc899296fee4870960fa26f934bbed4cc68c7e..71d9d2913af54adbaafc998cbaebcbfa2f4e3a74 100644 (file)
@@ -7332,7 +7332,7 @@ static void addrrsigtype_if_needed(struct auth_rrset** array,
 {
        if(az_domain_rrset(node, LDNS_RR_TYPE_RRSIG))
                return; /* already one there */
-       if((*rrnum)+1 >= arraysize)
+       if((*rrnum) >= arraysize)
                return; /* array too small? */
        array[*rrnum] = NULL; /* nothing there, but need entry in list */
        (*rrnum)++;