Skip to content

Commit

Permalink
web_server: Fix server not to segfault on startup
Browse files Browse the repository at this point in the history
Pair-programmed-with: Garming Sam <[email protected]>
Signed-off-by: Andrew Bartlett <[email protected]>

Autobuild-User(master): Andrew Bartlett <[email protected]>
Autobuild-Date(master): Mon Aug 31 04:11:55 CEST 2015 on sn-devel-104
  • Loading branch information
abartlet committed Aug 31, 2015
1 parent 615d9b7 commit c3647ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source4/web_server/web_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c3647ec

Please sign in to comment.