From c3647ec39e42e8dcdd3057dbab49918c2ccf5e9a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 31 Aug 2015 11:08:45 +1200 Subject: [PATCH] web_server: Fix server not to segfault on startup Pair-programmed-with: Garming Sam Signed-off-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Mon Aug 31 04:11:55 CEST 2015 on sn-devel-104 --- source4/web_server/web_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/web_server/web_server.c b/source4/web_server/web_server.c index 79a3f30bd57..d83b35a5429 100644 --- a/source4/web_server/web_server.c +++ b/source4/web_server/web_server.c @@ -248,7 +248,8 @@ static void websrv_send(struct stream_connection *conn, uint16_t flags) */ static void websrv_accept(struct stream_connection *conn) { - struct web_server_data *wdata = talloc_get_type_abort(conn->private_data, struct web_server_data); + struct task_server *task = talloc_get_type_abort(conn->private_data, struct task_server); + struct web_server_data *wdata = talloc_get_type_abort(task->private_data, struct web_server_data); struct websrv_context *web; struct socket_context *tls_socket; -- 2.11.4.GIT