mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
check the returns from isc_task_beginexclusive
This commit is contained in:
@@ -539,7 +539,9 @@ grow_entries(isc_task_t *task, isc_event_t *ev) {
|
|||||||
|
|
||||||
isc_event_free(&ev);
|
isc_event_free(&ev);
|
||||||
|
|
||||||
isc_task_beginexclusive(task);
|
result = isc_task_beginexclusive(task);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
goto check_exit;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (nbuckets[i] != 0 && adb->nentries >= nbuckets[i])
|
while (nbuckets[i] != 0 && adb->nentries >= nbuckets[i])
|
||||||
@@ -669,6 +671,7 @@ grow_entries(isc_task_t *task, isc_event_t *ev) {
|
|||||||
done:
|
done:
|
||||||
isc_task_endexclusive(task);
|
isc_task_endexclusive(task);
|
||||||
|
|
||||||
|
check_exit:
|
||||||
LOCK(&adb->lock);
|
LOCK(&adb->lock);
|
||||||
if (dec_adb_irefcnt(adb))
|
if (dec_adb_irefcnt(adb))
|
||||||
check_exit(adb);
|
check_exit(adb);
|
||||||
@@ -693,7 +696,9 @@ grow_names(isc_task_t *task, isc_event_t *ev) {
|
|||||||
|
|
||||||
isc_event_free(&ev);
|
isc_event_free(&ev);
|
||||||
|
|
||||||
isc_task_beginexclusive(task);
|
result = isc_task_beginexclusive(task);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
goto check_exit;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (nbuckets[i] != 0 && adb->nnames >= nbuckets[i])
|
while (nbuckets[i] != 0 && adb->nnames >= nbuckets[i])
|
||||||
@@ -819,6 +824,7 @@ grow_names(isc_task_t *task, isc_event_t *ev) {
|
|||||||
done:
|
done:
|
||||||
isc_task_endexclusive(task);
|
isc_task_endexclusive(task);
|
||||||
|
|
||||||
|
check_exit:
|
||||||
LOCK(&adb->lock);
|
LOCK(&adb->lock);
|
||||||
if (dec_adb_irefcnt(adb))
|
if (dec_adb_irefcnt(adb))
|
||||||
check_exit(adb);
|
check_exit(adb);
|
||||||
|
Reference in New Issue
Block a user