]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
When unsetting option strings pointer wasn't being NULLed.
authorJames Brister <source@isc.org>
Wed, 26 Jul 2000 15:21:04 +0000 (15:21 +0000)
committerJames Brister <source@isc.org>
Wed, 26 Jul 2000 15:21:04 +0000 (15:21 +0000)
lib/dns/config/confctx.c

index b6e26cbc3bede38c684caf7cf4ab8d338ea4a1a1..dcb7cd180e20d7adcffe78546cf86536876e9820 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
-/* $Id: confctx.c,v 1.75 2000/07/25 17:55:37 brister Exp $ */
+/* $Id: confctx.c,v 1.76 2000/07/26 15:21:04 brister Exp $ */
 
 #include <config.h>
 
@@ -198,6 +198,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);                                 \
 }