From f0ffc28f61a68b350fef9257f5f50e1ac866e0ab Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 27 Mar 2002 04:48:21 +0000 Subject: [PATCH] 1238. [bug] It is possible to lockup the server when shutting down if a notifies were being processed. [RT #2591] --- CHANGES | 3 +++ lib/dns/zone.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 82041081b5..163ee58e83 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1238. [bug] It is possible to lockup the server when shutting down + if a notifies were being processed. [RT #2591] + 1237. [bug] nslookup: "set q=type" failed. 1236. [bug] dns_rdata{class,type}_fromtext() didn't handle non diff --git a/lib/dns/zone.c b/lib/dns/zone.c index e6a2873607..7187eed1d0 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.364 2002/03/11 04:41:53 marka Exp $ */ +/* $Id: zone.c,v 1.365 2002/03/27 04:48:21 marka Exp $ */ #include @@ -4914,7 +4914,9 @@ notify_done(isc_task_t *task, isc_event_t *event) { (notify->flags & DNS_NOTIFY_NOSOA) == 0))) { notify->flags |= DNS_NOTIFY_NOSOA; dns_request_destroy(¬ify->request); - notify_send_queue(notify); + result = notify_send_queue(notify); + if (result != ISC_R_SUCCESS) + notify_destroy(notify, ISC_FALSE); } else { if (result == ISC_R_TIMEDOUT) notify_log(notify->zone, ISC_LOG_DEBUG(1),