mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Changed a goto into a conditional block that works the same way.
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: dbtable.c,v 1.4 1999/04/14 02:37:08 halley Exp $
|
* $Id: dbtable.c,v 1.5 1999/04/14 12:29:39 tale Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -152,15 +152,14 @@ dns_dbtable_remove(dns_dbtable_t *dbtable, dns_db_t *db) {
|
|||||||
|
|
||||||
result = dns_rbt_findname(dbtable->rbt, name, NULL,
|
result = dns_rbt_findname(dbtable->rbt, name, NULL,
|
||||||
(void **)&stored_data);
|
(void **)&stored_data);
|
||||||
if (result != DNS_R_SUCCESS)
|
|
||||||
goto remove_exit;
|
|
||||||
|
|
||||||
INSIST(stored_data == db);
|
if (result == DNS_R_SUCCESS) {
|
||||||
dns_db_detach(&stored_data);
|
INSIST(stored_data == db);
|
||||||
|
dns_db_detach(&stored_data);
|
||||||
|
|
||||||
dns_rbt_deletename(dbtable->rbt, name, ISC_FALSE);
|
dns_rbt_deletename(dbtable->rbt, name, ISC_FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
remove_exit:
|
|
||||||
RWUNLOCK(&dbtable->tree_lock, isc_rwlocktype_write);
|
RWUNLOCK(&dbtable->tree_lock, isc_rwlocktype_write);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user