mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
web_server: Fix initialization.
This commit is contained in:
parent
04abf2cc8d
commit
7982f683ee
@ -310,6 +310,8 @@ static void websrv_task_init(struct task_server *task)
|
||||
wdata = talloc_zero(task, struct web_server_data);
|
||||
if (wdata == NULL) goto failed;
|
||||
|
||||
task->private_data = wdata;
|
||||
|
||||
if (lpcfg_interfaces(task->lp_ctx) && lpcfg_bind_interfaces_only(task->lp_ctx)) {
|
||||
int num_interfaces;
|
||||
int i;
|
||||
@ -326,7 +328,7 @@ static void websrv_task_init(struct task_server *task)
|
||||
&web_stream_ops,
|
||||
"ipv4", address,
|
||||
&port, lpcfg_socket_options(task->lp_ctx),
|
||||
wdata);
|
||||
task);
|
||||
if (!NT_STATUS_IS_OK(status)) goto failed;
|
||||
}
|
||||
|
||||
@ -337,15 +339,16 @@ static void websrv_task_init(struct task_server *task)
|
||||
&web_stream_ops,
|
||||
"ipv4", lpcfg_socket_address(task->lp_ctx),
|
||||
&port, lpcfg_socket_options(task->lp_ctx),
|
||||
wdata);
|
||||
task);
|
||||
if (!NT_STATUS_IS_OK(status)) goto failed;
|
||||
}
|
||||
|
||||
|
||||
wdata->tls_params = tls_initialise(wdata, task->lp_ctx);
|
||||
if (wdata->tls_params == NULL) goto failed;
|
||||
|
||||
if (!wsgi_initialize(wdata)) goto failed;
|
||||
|
||||
|
||||
return;
|
||||
|
||||
failed:
|
||||
|
Loading…
x
Reference in New Issue
Block a user