- auth-load-thread, fix double delete on auth load thread create failure.

This commit is contained in:
W.C.A. Wijngaards
2026-10-15 11:00:48 +02:00
parent 6180f1b6d0
commit 276a2db8af
+1
View File
@@ -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;
}