diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-01 15:35:50 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2014-03-01 15:35:50 +0000 |
commit | 14db4212ab3a4de8d15b9f3f3663e8c9065f1f83 (patch) | |
tree | 482e00d24a5313576bea13b61dbf885066cc3fe1 | |
parent | 00a5b5d477568789a4caa2580200f13488fb5d0a (diff) | |
download | dnsmasq-14db4212ab3a4de8d15b9f3f3663e8c9065f1f83.tar.gz |
Tidy.
-rw-r--r-- | src/dnssec.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dnssec.c b/src/dnssec.c index 3592691..0f95f4a 100644 --- a/src/dnssec.c +++ b/src/dnssec.c @@ -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) { - int rdlen, flags = F_FORWARD | F_DS | F_NEG ; + int rdlen, flags = F_FORWARD | F_DS | F_NEG; unsigned long ttl, minttl = ULONG_MAX; struct all_addr a; @@ -2153,9 +2153,8 @@ static int check_rrs(unsigned char *p, struct dns_header *header, size_t plen, i if (class == C_IN) { u16 *d; - unsigned char *pp = p; - - for (d = get_desc(type); *d != (u16)-1; d++) + + for (pp = p, d = get_desc(type); *d != (u16)-1; d++) { if (*d != 0) pp += *d; |