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

index 0495958d3f32d2c5a0abb2c3c22d8b57f03e34ba..79fc899296fee4870960fa26f934bbed4cc68c7e 100644 (file)
@@ -7299,7 +7299,7 @@ static size_t authdata_rrsets_to_list(struct auth_rrset** array,
        struct auth_rrset* rrset = first;
        size_t num = 0;
        while(rrset) {
-               if(num+1 >= arraysize)
+               if(num >= arraysize)
                        return num;
                array[num] = rrset;
                num++;