mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-10-21 07:41:29 +02:00
- auth-load-thread, fix double delete on auth load thread create failure.
This commit is contained in:
@@ -798,6 +798,7 @@ auth_load_thread_create(struct auth_load_task* task)
|
||||
thr->commpair[0] = -1;
|
||||
thr->commpair[1] = -1;
|
||||
if(!create_socketpair(thr->commpair, task->worker->daemon->rand)) {
|
||||
thr->task = NULL; /* task is deleted by caller. */
|
||||
auth_load_thread_delete(thr);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user