]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Fix endless loop with some bogu-nxdomain. Another F_CONFIG botch.
authorSimon Kelley <simon@thekelleys.org.uk>
Tue, 17 Dec 2013 15:47:10 +0000 (15:47 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Tue, 17 Dec 2013 15:47:10 +0000 (15:47 +0000)
CHANGELOG
src/rfc1035.c

index 39dbe175c240ce47d251891e4827ffae866e8a43..cbb942015e9df78514376c68fe43fe2c71478d7c 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,9 @@ version 2.69
            on the BSD platform. Thanks to Matthias Andree for
            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
             Use random addresses for DHCPv6 temporary address
index 9fdba057fdfbf7e778e187f3628edbb6c0b5a0b9..c120d554dc08871d044c7a40bef2978462a5b344 100644 (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
                   to get the ttl from in the normal processing */
                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();
                
                return 1;