summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dnssec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dnssec.c b/src/dnssec.c
index 47ecc51..44d626b 100644
--- a/src/dnssec.c
+++ b/src/dnssec.c
@@ -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++;