]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1282. [bug] ns_server_destroy() failed to set *serverp to NULL.
authorMark Andrews <marka@isc.org>
Wed, 8 May 2002 04:45:43 +0000 (04:45 +0000)
committerMark Andrews <marka@isc.org>
Wed, 8 May 2002 04:45:43 +0000 (04:45 +0000)
CHANGES
bin/named/server.c

diff --git a/CHANGES b/CHANGES
index 7e14745b0d8254d7a0d6ccb721622a8f62695159..73f4563bea6f2e03e924554eb742e222b86ffc93 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1282.  [bug]           ns_server_destroy() failed to set *serverp to NULL.
+
 1281.  [func]          libbind: ns_sign2() and ns_sign_tcp() now provide
                        support for compressed TSIG owner names.
 
index 87f211df9332d092b1aaaecd1aaa0c28072c3c3c..5092cf5b3099f6879d48db235da269dd7433bcca 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: server.c,v 1.375 2002/05/03 05:28:21 marka Exp $ */
+/* $Id: server.c,v 1.376 2002/05/08 04:45:40 marka Exp $ */
 
 #include <config.h>
 
@@ -2357,6 +2357,7 @@ ns_server_destroy(ns_server_t **serverp) {
 
        server->magic = 0;
        isc_mem_put(server->mctx, server, sizeof(*server));
+       *serverp = NULL;
 }
 
 static void