diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2013-11-15 15:47:51 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2013-11-15 15:47:51 +0000 |
commit | 587ad4f271b8ad269a41d5d6918a89c3da85d309 (patch) | |
tree | 5a326db55ab7a3adb39550dccd568e6d7871b2a8 /src | |
parent | 4452292064811468362f33f029d86bde741f730f (diff) | |
download | dnsmasq-587ad4f271b8ad269a41d5d6918a89c3da85d309.tar.gz |
Fix crash introduced in 376d48c7f187cd3c3e941929a4cd5e9c9903fc89
Diffstat (limited to 'src')
-rw-r--r-- | src/auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -660,16 +660,16 @@ size_t answer_auth(struct dns_header *header, char *limit, size_t qlen, time_t n *cut = 0; for (addrlist = intr->addr; addrlist; addrlist = addrlist->next) - if (!(subnet->flags & ADDRLIST_IPV6) && - (local_query || filter_zone(zone, F_IPV4, &addrlist->addr)) && + if (!(addrlist->flags & ADDRLIST_IPV6) && + (local_query || filter_zone(zone, F_IPV4, &addrlist->addr)) && add_resource_record(header, limit, &trunc, -axfroffset, &ansp, daemon->auth_ttl, NULL, T_A, C_IN, "4", cut ? intr->name : NULL, &addrlist->addr)) anscount++; #ifdef HAVE_IPV6 for (addrlist = intr->addr; addrlist; addrlist = addrlist->next) - if ((subnet->flags & ADDRLIST_IPV6) && - (local_query || filter_zone(zone, F_IPV6, &addrlist->addr)) && + if ((addrlist->flags & ADDRLIST_IPV6) && + (local_query || filter_zone(zone, F_IPV6, &addrlist->addr)) && add_resource_record(header, limit, &trunc, -axfroffset, &ansp, daemon->auth_ttl, NULL, T_AAAA, C_IN, "6", cut ? intr->name : NULL, &addrlist->addr)) anscount++; |