]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
zonemd, nsec3 rr iterator is type int, like other nsec3 code.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Oct 2020 12:52:32 +0000 (14:52 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Oct 2020 12:52:32 +0000 (14:52 +0200)
services/authzone.c

index 0507c66ca39ad2bbb523cd73ada55e828181f660..98656dfb054cc065911b22c13c49fe8990f4bdf6 100644 (file)
@@ -7575,11 +7575,11 @@ static int zonemd_dnssec_verify_rrset(struct auth_zone* z,
 static int nsec3_of_param_has_type(struct auth_rrset* nsec3, int algo,
        size_t iter, uint8_t* salt, size_t saltlen, uint16_t rrtype)
 {
-       size_t i;
+       int i, count = (int)nsec3->data->count;
        struct ub_packed_rrset_key pk;
        memset(&pk, 0, sizeof(pk));
        pk.entry.data = nsec3->data;
-       for(i=0; i<nsec3->data->count; i++) {
+       for(i=0; i<count; i++) {
                int rralgo;
                size_t rriter, rrsaltlen;
                uint8_t* rrsalt;