]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2266. [bug] client.c:get_clientmctx() returned the same mctx
authorMark Andrews <marka@isc.org>
Mon, 26 Nov 2007 04:47:17 +0000 (04:47 +0000)
committerMark Andrews <marka@isc.org>
Mon, 26 Nov 2007 04:47:17 +0000 (04:47 +0000)
                        once the pool of mctx's was filled. [RT #17218]

CHANGES
bin/named/client.c

diff --git a/CHANGES b/CHANGES
index c349fbd5d92c1a47db44cdc17704153240313c37..c32cc413017e4c57e73777d4f1f0f2a3dc1efe70 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2266.  [bug]           client.c:get_clientmctx() returned the same mctx
+                       once the pool of mctx's was filled. [RT #17218]
+
 2265.  [bug]           Test that the memory context's basic_table is non NULL
                        before freeing.  [RT #17265]
 
index de49512a85aaab99f19c2943dbde377b318b5a90..df98201cc833e69c7b13d855ec0670a3179727b2 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: client.c,v 1.249 2007/08/22 00:42:42 marka Exp $ */
+/* $Id: client.c,v 1.250 2007/11/26 04:47:17 marka Exp $ */
 
 #include <config.h>
 
@@ -1853,10 +1853,10 @@ get_clientmctx(ns_clientmgr_t *manager, isc_mem_t **mctxp) {
                        return (result);
 
                manager->mctxpool[manager->nextmctx] = clientmctx;
-               manager->nextmctx++;
-               if (manager->nextmctx == NMCTXS)
-                       manager->nextmctx = 0;
        }
+       manager->nextmctx++;
+       if (manager->nextmctx == NMCTXS)
+               manager->nextmctx = 0;
 #else
        clientmctx = manager->mctx;
 #endif