summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-01-17 00:30:49 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-17 00:30:49 +0100
commit7982f683ee4ae3bb693745c895b1b11586bf32d0 (patch)
tree2baef7aeae088a7ddab2f0cc8413bf69b235afb7 /source4
parent04abf2cc8dfda2a969cd2c1257d5d5a41979a0d2 (diff)
downloadsamba-7982f683ee4ae3bb693745c895b1b11586bf32d0.tar.gz
samba-7982f683ee4ae3bb693745c895b1b11586bf32d0.tar.bz2
samba-7982f683ee4ae3bb693745c895b1b11586bf32d0.zip
web_server: Fix initialization.
Diffstat (limited to 'source4')
-rw-r--r--source4/web_server/web_server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/web_server/web_server.c b/source4/web_server/web_server.c
index 8e8168511f..b2f6f5f4ba 100644
--- a/source4/web_server/web_server.c
+++ b/source4/web_server/web_server.c
@@ -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: