mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
isc_mutex_init returns 'void'
This commit is contained in:
committed by
Witold Kręcicki
parent
73a8999d1c
commit
2f3eee5a4f
@@ -1447,10 +1447,7 @@ dns_rpz_new_zones(dns_rpz_zones_t **rpzsp, char *rps_cstr,
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup_rwlock;
|
||||
|
||||
result = isc_mutex_init(&zones->maint_lock);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup_mutex;
|
||||
|
||||
isc_mutex_init(&zones->maint_lock);
|
||||
isc_refcount_init(&zones->refs, 1);
|
||||
|
||||
zones->rps_cstr = rps_cstr;
|
||||
@@ -1490,7 +1487,6 @@ cleanup_rbt:
|
||||
|
||||
DESTROYLOCK(&zones->maint_lock);
|
||||
|
||||
cleanup_mutex:
|
||||
isc_rwlock_destroy(&zones->search_lock);
|
||||
|
||||
cleanup_rwlock:
|
||||
|
Reference in New Issue
Block a user