]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
detach from quota in an error case. I don't know if this is strictly needed,
authorMichael Graff <mgraff@isc.org>
Sun, 8 Sep 2002 18:40:58 +0000 (18:40 +0000)
committerMichael Graff <mgraff@isc.org>
Sun, 8 Sep 2002 18:40:58 +0000 (18:40 +0000)
but it makes sense.  It is probably done later as well, but all places
check for the pointer != NULL, so we'll be ok.

bin/named/query.c

index 2cd13c70bf73e44c7596346219c7e8f9a10d0b7e..4077bc2a150db1fc0063278184f461ac0f8a6105 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: query.c,v 1.235 2002/09/06 03:47:56 marka Exp $ */
+/* $Id: query.c,v 1.236 2002/09/08 18:40:58 explorer Exp $ */
 
 #include <config.h>
 
@@ -2349,6 +2349,8 @@ query_recurse(ns_client_t *client, dns_rdatatype_t qtype, dns_name_t *qdomain,
                                      NS_LOGMODULE_QUERY, ISC_LOG_WARNING,
                                      "no more recursive clients: %s",
                                      isc_result_totext(result));
+                       if (client->recursionquota != NULL)
+                               isc_quota_detach(&client->recursionquota);
                        return (result);
                }
                ns_client_recursing(client, killoldest);