mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-29 12:50:47 +00:00
Tweaks to EDNS0 handling in DNS replies.
This commit is contained in:
1 parent
2dbba34b2c
commit
dd4ad9ac7e
2 files changed
+43
-36
No files matched your search
+9
-11
@@ -2129,18 +2129,16 @@ int dnssec_validate_reply(time_t now, struct dns_header *header, size_t plen, ch
|
||||
/* Empty DS without NSECS */
|
||||
if (qtype == T_DS)
|
||||
return STAT_BOGUS;
|
||||
else
|
||||
|
||||
rc = zone_status(name, qclass, keyname, now);
|
||||
if (rc != STAT_SECURE)
|
||||
{
|
||||
rc = zone_status(name, qclass, keyname, now);
|
||||
if (rc != STAT_SECURE)
|
||||
{
|
||||
if (class)
|
||||
*class = qclass; /* Class for NEED_DS or NEED_DNSKEY */
|
||||
return rc;
|
||||
}
|
||||
|
||||
return STAT_BOGUS; /* signed zone, no NSECs */
|
||||
}
|
||||
if (class)
|
||||
*class = qclass; /* Class for NEED_DS or NEED_DNSKEY */
|
||||
return rc;
|
||||
}
|
||||
|
||||
return STAT_BOGUS; /* signed zone, no NSECs */
|
||||
}
|
||||
|
||||
if (nsec_type == T_NSEC)
|
||||
|
||||
Reference in new issue
Block a user