Commit 14db4212 authored by Simon Kelley's avatar Simon Kelley

Tidy.

parent 00a5b5d4
...@@ -1102,7 +1102,7 @@ int dnssec_validate_ds(time_t now, struct dns_header *header, size_t plen, char ...@@ -1102,7 +1102,7 @@ int dnssec_validate_ds(time_t now, struct dns_header *header, size_t plen, char
if ((val == STAT_SECURE || val == STAT_INSECURE) && neganswer) if ((val == STAT_SECURE || val == STAT_INSECURE) && neganswer)
{ {
int rdlen, flags = F_FORWARD | F_DS | F_NEG ; int rdlen, flags = F_FORWARD | F_DS | F_NEG;
unsigned long ttl, minttl = ULONG_MAX; unsigned long ttl, minttl = ULONG_MAX;
struct all_addr a; struct all_addr a;
...@@ -2153,9 +2153,8 @@ static int check_rrs(unsigned char *p, struct dns_header *header, size_t plen, i ...@@ -2153,9 +2153,8 @@ static int check_rrs(unsigned char *p, struct dns_header *header, size_t plen, i
if (class == C_IN) if (class == C_IN)
{ {
u16 *d; u16 *d;
unsigned char *pp = p;
for (pp = p, d = get_desc(type); *d != (u16)-1; d++)
for (d = get_desc(type); *d != (u16)-1; d++)
{ {
if (*d != 0) if (*d != 0)
pp += *d; pp += *d;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment