summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-02-09 14:21:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-09 17:26:00 +0100
commitedbd6f4a93fffb1ccbf678b462ccffe09977c9d0 (patch)
tree7536089edc6db1a4f9c70f10041ac34038e01799
parent1b5609aa4d72fe3e8bd916440844cc380d75d96a (diff)
downloadsamba-edbd6f4a93fffb1ccbf678b462ccffe09977c9d0.tar.gz
samba-edbd6f4a93fffb1ccbf678b462ccffe09977c9d0.tar.bz2
samba-edbd6f4a93fffb1ccbf678b462ccffe09977c9d0.zip
s3-rpc_server: We need a messaging context for rpc.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Feb 9 17:26:00 CET 2011 on sn-devel-104
-rw-r--r--source3/rpc_server/rpc_server.c3
1 files changed, 3 insertions, 0 deletions
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) {