Loop variable must count up from zero, now we're using it as
an array index.
This commit is contained in:
Simon Kelley
2019-09-03 22:48:39 +01:00
parent 69a0477b74
commit e24abf28a2

View File

@@ -1532,7 +1532,7 @@ static int prove_non_existence(struct dns_header *header, size_t plen, char *key
auth_start = p; auth_start = p;
for (nsecs_found = 0, i = ntohs(header->nscount); i != 0; i--) for (nsecs_found = 0, i = 0; i < ntohs(header->nscount); i++)
{ {
unsigned char *pstart = p; unsigned char *pstart = p;