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:
@@ -1719,6 +1719,10 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
|
|||||||
if (neganswer && !have_answer)
|
if (neganswer && !have_answer)
|
||||||
*neganswer = 1;
|
*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++)
|
for (p1 = ans_start, i = 0; i < ntohs(header->ancount) + ntohs(header->nscount); i++)
|
||||||
{
|
{
|
||||||
if (!extract_name(header, plen, &p1, name, 1, 10))
|
if (!extract_name(header, plen, &p1, name, 1, 10))
|
||||||
|
|||||||
Reference in New Issue
Block a user