From edbd6f4a93fffb1ccbf678b462ccffe09977c9d0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 9 Feb 2011 14:21:24 +0100 Subject: s3-rpc_server: We need a messaging context for rpc. Autobuild-User: Andreas Schneider Autobuild-Date: Wed Feb 9 17:26:00 CET 2011 on sn-devel-104 --- source3/rpc_server/rpc_server.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index 9a7ff099da..229096e463 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -306,6 +306,7 @@ struct named_pipe_client { struct ndr_syntax_id pipe_id; struct tevent_context *ev; + struct messaging_context *msg_ctx; uint16_t file_type; uint16_t device_state; @@ -356,6 +357,7 @@ static void named_pipe_accept_function(const char *pipe_name, int fd) npc->pipe_name = pipe_name; npc->pipe_id = syntax; npc->ev = server_event_context(); + npc->msg_ctx = server_messaging_context(); /* make sure socket is in NON blocking state */ ret = set_blocking(fd, false); @@ -439,6 +441,7 @@ static void named_pipe_accept_done(struct tevent_req *subreq) strerror(error))); goto fail; } + npc->p->msg_ctx = npc->msg_ctx; npc->write_queue = tevent_queue_create(npc, "np_server_write_queue"); if (!npc->write_queue) { -- cgit