mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
event sender field was NULL
This commit is contained in:
@@ -375,6 +375,9 @@ main(int argc, char **argv) {
|
|||||||
cmgr[i].sock = sock;
|
cmgr[i].sock = sock;
|
||||||
cmgr[i].view = NULL;
|
cmgr[i].view = NULL;
|
||||||
cmgr[i].flags = 0;
|
cmgr[i].flags = 0;
|
||||||
|
result = isc_task_create(taskmgr, 0, &cmgr[i].task);
|
||||||
|
if (result != ISC_R_SUCCESS)
|
||||||
|
break;
|
||||||
ISC_EVENT_INIT(&cmgr[i].sdev, sizeof(isc_event_t),
|
ISC_EVENT_INIT(&cmgr[i].sdev, sizeof(isc_event_t),
|
||||||
ISC_EVENTATTR_NOPURGE,
|
ISC_EVENTATTR_NOPURGE,
|
||||||
0, LWRD_SHUTDOWN,
|
0, LWRD_SHUTDOWN,
|
||||||
@@ -382,9 +385,6 @@ main(int argc, char **argv) {
|
|||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
ISC_LIST_INIT(cmgr[i].idle);
|
ISC_LIST_INIT(cmgr[i].idle);
|
||||||
ISC_LIST_INIT(cmgr[i].running);
|
ISC_LIST_INIT(cmgr[i].running);
|
||||||
result = isc_task_create(taskmgr, 0, &cmgr[i].task);
|
|
||||||
if (result != ISC_R_SUCCESS)
|
|
||||||
break;
|
|
||||||
isc_task_setname(cmgr[i].task, "lwresd client", &cmgr[i]);
|
isc_task_setname(cmgr[i].task, "lwresd client", &cmgr[i]);
|
||||||
cmgr[i].mctx = mem;
|
cmgr[i].mctx = mem;
|
||||||
cmgr[i].lwctx = NULL;
|
cmgr[i].lwctx = NULL;
|
||||||
@@ -425,9 +425,7 @@ main(int argc, char **argv) {
|
|||||||
/*
|
/*
|
||||||
* Wait for ^c or kill.
|
* Wait for ^c or kill.
|
||||||
*/
|
*/
|
||||||
isc_mem_stats(mem, stdout);
|
|
||||||
isc_app_run();
|
isc_app_run();
|
||||||
isc_mem_stats(mem, stdout);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Send a shutdown event to every task.
|
* Send a shutdown event to every task.
|
||||||
|
Reference in New Issue
Block a user