From 7d8d82cee0910a0252e1c37bace732e996789772 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Sat, 26 Aug 2000 01:46:42 +0000 Subject: [PATCH] 409. [bug] If named was shut down early in the startup process, ns_omapi_shutdown() would attempt to lock an unintialized mutex. [RT #262] --- CHANGES | 5 +++++ bin/named/omapiconf.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 4a50cb0589..b2e1049bf8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ + + 409. [bug] If named was shut down early in the startup + process, ns_omapi_shutdown() would attempt to lock + an unintialized mutex. [RT #262] + 408. [bug] stub zones could leak memory and reference counts if all the masters were unreachable. diff --git a/bin/named/omapiconf.c b/bin/named/omapiconf.c index d8c35b6451..15014e7e3f 100644 --- a/bin/named/omapiconf.c +++ b/bin/named/omapiconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: omapiconf.c,v 1.10 2000/08/01 01:11:56 tale Exp $ */ +/* $Id: omapiconf.c,v 1.11 2000/08/26 01:46:42 gson Exp $ */ /* * Principal Author: DCL @@ -100,6 +100,8 @@ void ns_omapi_shutdown(isc_boolean_t exiting) { ns_omapilistener_t *listener; + RUNTIME_CHECK(isc_once_do(&once, initialize_mutex) == ISC_R_SUCCESS); + if (exiting) { /* * When not exiting, this function is called from