Fix endless loop with some bogu-nxdomain. Another F_CONFIG botch.

This commit is contained in:
Simon Kelley
2013-12-17 15:47:10 +00:00
parent 1ee9be4c3f
commit 8db957dfbf
2 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ version 2.69
on the BSD platform. Thanks to Matthias Andree for on the BSD platform. Thanks to Matthias Andree for
valuable research on how to implement this. valuable research on how to implement this.
Fix infinite loop associated with some --bogus-nxdomain
configs. Thanks forgobogo for the bug report.
version 2.68 version 2.68
Use random addresses for DHCPv6 temporary address Use random addresses for DHCPv6 temporary address

View File

@@ -1283,7 +1283,7 @@ int check_for_bogus_wildcard(struct dns_header *header, size_t qlen, char *name,
/* Found a bogus address. Insert that info here, since there no SOA record /* Found a bogus address. Insert that info here, since there no SOA record
to get the ttl from in the normal processing */ to get the ttl from in the normal processing */
cache_start_insert(); cache_start_insert();
cache_insert(name, NULL, now, ttl, F_IPV4 | F_FORWARD | F_NEG | F_NXDOMAIN | F_CONFIG); cache_insert(name, NULL, now, ttl, F_IPV4 | F_FORWARD | F_NEG | F_NXDOMAIN);
cache_end_insert(); cache_end_insert();
return 1; return 1;