]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Another filter_rrsigs fix.
authorSimon Kelley <simon@thekelleys.org.uk>
Thu, 1 May 2014 17:19:12 +0000 (18:19 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Thu, 1 May 2014 17:19:12 +0000 (18:19 +0100)
src/dnssec.c

index 47ecc51d2cad491ce9355bf902010b142d49f996..44d626bc2f840b4eb075c2ca327bf922a13010ae 100644 (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++;