2366. [bug] Adb shutdown race. [RT #18021]

This commit is contained in:
Mark Andrews
2008-05-02 04:40:12 +00:00
parent 2a9a5e1871
commit 816496b221
2 changed files with 6 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: adb.c,v 1.239 2008/05/01 18:23:07 jinmei Exp $ */
/* $Id: adb.c,v 1.240 2008/05/02 04:40:12 marka Exp $ */
/*! \file
*
@@ -1234,7 +1234,7 @@ dec_entry_refcnt(dns_adb_t *adb, dns_adbentry_t *entry, isc_boolean_t lock) {
free_adbentry(adb, &entry);
if (result)
result =dec_adb_irefcnt(adb);
result = dec_adb_irefcnt(adb);
return (result);
}
@@ -1772,6 +1772,8 @@ shutdown_task(isc_task_t *task, isc_event_t *ev) {
INSIST(DNS_ADB_VALID(adb));
isc_event_free(&ev);
LOCK(&adb->lock);
UNLOCK(&adb->lock);
destroy(adb);
}