Another filter_rrsigs fix.

This commit is contained in:
Simon Kelley
2014-05-01 18:19:12 +01:00
parent 8938ae05ac
commit e6096e643a

View File

@@ -2222,7 +2222,7 @@ size_t filter_rrsigs(struct dns_header *header, size_t plen)
if (i < ntohs(header->ancount))
chop_an++;
else if (i < ntohs(header->nscount))
else if (i < (ntohs(header->nscount) + ntohs(header->ancount)))
chop_ns++;
else
chop_ar++;