From afb5dc3afc14c79ca2e3093f68987d39fe7bd440 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 22 Nov 2000 21:59:50 +0000 Subject: [PATCH] don't free the ipv4 dispatcher if there isn't one. --- bin/nsupdate/nsupdate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 93ca3a127a..5efc882edc 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.64 2000/11/22 21:25:38 bwelling Exp $ */ +/* $Id: nsupdate.c,v 1.65 2000/11/22 21:59:50 bwelling Exp $ */ #include @@ -1522,7 +1522,8 @@ cleanup(void) { dns_requestmgr_detach(&requestmgr); ddebug("Freeing the dispatchers"); - dns_dispatch_detach(&dispatchv4); + if (have_ipv4) + dns_dispatch_detach(&dispatchv4); if (have_ipv6) dns_dispatch_detach(&dispatchv6);