]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Wed, 26 Jul 2000 16:32:50 +0000 (16:32 +0000)
committerAndreas Gustafsson <source@isc.org>
Wed, 26 Jul 2000 16:32:50 +0000 (16:32 +0000)
When unsetting option strings pointer wasn't being NULLed.

lib/dns/config/confctx.c

index 8f65b0f9fe17e1e70b88ba1f27eab3bc5c6c9d44..6b023c757e2475b22656818483b6459bd613c1f5 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: confctx.c,v 1.70.2.2 2000/07/12 16:37:09 gson Exp $ */
+/* $Id: confctx.c,v 1.70.2.3 2000/07/26 16:32:50 gson Exp $ */
 
 #include <config.h>
 
@@ -194,6 +194,7 @@ PVT_CONCAT(dns_c_ctx_unset, FUNC)(dns_c_ctx_t *cfg)         \
        }                                                       \
                                                                \
        isc_mem_free(cfg->options->mem, cfg->options->FIELD);   \
+       cfg->options->FIELD = NULL;                             \
                                                                \
        return (ISC_R_SUCCESS);                                 \
 }