diff options
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/service_task.c | 3 | ||||
-rw-r--r-- | source4/smbd/service_task.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source4/smbd/service_task.c b/source4/smbd/service_task.c index c77cae4185..dceda5a922 100644 --- a/source4/smbd/service_task.c +++ b/source4/smbd/service_task.c @@ -64,9 +64,10 @@ static void task_server_callback(struct event_context *event_ctx, task->event_ctx = event_ctx; task->model_ops = state->model_ops; task->server_id = server_id; + task->lp_ctx = global_loadparm; task->msg_ctx = messaging_init(task, - lp_messaging_path(task, global_loadparm), + lp_messaging_path(task, task->lp_ctx), task->server_id, task->event_ctx); if (!task->msg_ctx) { task_server_terminate(task, "messaging_init() failed"); diff --git a/source4/smbd/service_task.h b/source4/smbd/service_task.h index e5bf9ea414..207e2cbbca 100644 --- a/source4/smbd/service_task.h +++ b/source4/smbd/service_task.h @@ -28,6 +28,7 @@ struct task_server { struct event_context *event_ctx; const struct model_ops *model_ops; struct messaging_context *msg_ctx; + struct loadparm_context *lp_ctx; struct server_id server_id; void *private; }; |