mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-27 12:31:03 +00:00
Fix botch in ae7a3b9d2e
Loop variable must count up from zero, now we're using it as an array index.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1532,7 +1532,7 @@ static int prove_non_existence(struct dns_header *header, size_t plen, char *key
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user