]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't add SERVFAILs caused by quota to badcache
authorWitold Kręcicki <wpk@isc.org>
Wed, 13 Nov 2019 09:52:13 +0000 (10:52 +0100)
committerWitold Kręcicki <wpk@isc.org>
Wed, 13 Nov 2019 09:52:13 +0000 (10:52 +0100)
lib/ns/query.c

index 7adf04d96f4d25dad44b48fe3ba7ef94d9e83a18..52375b9c4a49afcae10b980bae46d1186c17113d 100644 (file)
@@ -5819,6 +5819,8 @@ ns_query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qname,
                        ns_client_killoldestquery(client);
                }
                if (result != ISC_R_SUCCESS) {
+                       /* Don't add this to badcache */
+                       client->attributes |= NS_CLIENTATTR_NOSETFC;
                        return (result);
                }