mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Handle replies with no answers and no NS in validate_reply.
This commit is contained in:
@@ -1718,6 +1718,10 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
|
||||
|
||||
if (neganswer && !have_answer)
|
||||
*neganswer = 1;
|
||||
|
||||
/* No data, therefore no sigs */
|
||||
if (ntohs(header->ancount) + ntohs(header->nscount) == 0)
|
||||
return STAT_NO_SIG;
|
||||
|
||||
for (p1 = ans_start, i = 0; i < ntohs(header->ancount) + ntohs(header->nscount); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user