Commit d2e440ca authored by Mark Andrews's avatar Mark Andrews
Browse files

2266. [bug] client.c:get_clientmctx() returned the same mctx

                        once the pool of mctx's was filled. [RT #17218]
parent 404df30f
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 2265. [bug] Test that the memory context's basic_table is non NULL
before freeing. [RT #17265] before freeing. [RT #17265]
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * 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> #include <config.h>
...@@ -1853,10 +1853,10 @@ get_clientmctx(ns_clientmgr_t *manager, isc_mem_t **mctxp) { ...@@ -1853,10 +1853,10 @@ get_clientmctx(ns_clientmgr_t *manager, isc_mem_t **mctxp) {
return (result); return (result);
manager->mctxpool[manager->nextmctx] = clientmctx; manager->mctxpool[manager->nextmctx] = clientmctx;
manager->nextmctx++;
if (manager->nextmctx == NMCTXS)
manager->nextmctx = 0;
} }
manager->nextmctx++;
if (manager->nextmctx == NMCTXS)
manager->nextmctx = 0;
#else #else
clientmctx = manager->mctx; clientmctx = manager->mctx;
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment