2
0
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:
Ondřej Surý
2018-11-16 15:33:22 +01:00
committed by Witold Kręcicki
parent 73a8999d1c
commit 2f3eee5a4f
74 changed files with 163 additions and 540 deletions

View File

@@ -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: