summaryrefslogtreecommitdiffstats
path: root/lib/dns/dynamic_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/dynamic_db.c')
-rw-r--r--lib/dns/dynamic_db.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/dns/dynamic_db.c b/lib/dns/dynamic_db.c
index f11584d..5dc9644 100644
--- a/lib/dns/dynamic_db.c
+++ b/lib/dns/dynamic_db.c
@@ -226,7 +226,7 @@ cleanup:
}
void
-dns_dynamic_db_cleanup(void)
+dns_dynamic_db_cleanup(isc_boolean_t exiting)
{
dyndb_implementation_t *elem;
dyndb_implementation_t *next;
@@ -244,7 +244,8 @@ dns_dynamic_db_cleanup(void)
}
UNLOCK(&dyndb_lock);
- isc_mutex_destroy(&dyndb_lock);
+ if (exiting == ISC_TRUE)
+ isc_mutex_destroy(&dyndb_lock);
}
dns_dyndb_arguments_t *