From: W.C.A. Wijngaards Date: Wed, 10 Feb 2021 15:38:39 +0000 (+0100) Subject: zonemd, review comments, compare list size for rrsigtype add. X-Git-Tag: release-1.13.2rc1~269^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a972aa5b235928ad9186b673fd9632487db4077;p=thirdparty%2Funbound.git zonemd, review comments, compare list size for rrsigtype add. --- diff --git a/services/authzone.c b/services/authzone.c index 79fc89929..71d9d2913 100644 --- a/services/authzone.c +++ b/services/authzone.c @@ -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)++;