mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-23 11:54:39 +00:00
Code tidy.
This commit is contained in:
1 parent
6938f3476e
commit
6f4681034e
1 file changed
+7
-9
+7
-9
@@ -795,18 +795,16 @@ int dnssec_validate_by_ds(time_t now, struct dns_header *header, size_t plen, ch
|
||||
GETSHORT(qclass, p);
|
||||
GETLONG(ttl, p);
|
||||
GETSHORT(rdlen, p);
|
||||
|
||||
if (qclass != class || qtype != T_DNSKEY || rc == 2)
|
||||
{
|
||||
if (ADD_RDLEN(header, p, plen, rdlen))
|
||||
continue;
|
||||
|
||||
return STAT_INSECURE; /* bad packet */
|
||||
}
|
||||
|
||||
|
||||
if (!CHECK_LEN(header, p, plen, rdlen) || rdlen < 4)
|
||||
return STAT_INSECURE; /* bad packet */
|
||||
|
||||
if (qclass != class || qtype != T_DNSKEY || rc == 2)
|
||||
{
|
||||
p += rdlen;
|
||||
continue;
|
||||
}
|
||||
|
||||
psave = p;
|
||||
|
||||
GETSHORT(flags, p);
|
||||
|
||||
Reference in new issue
Block a user