summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-02-07 10:29:55 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-07 11:40:20 +0100
commit8111d95655c23e0cd6fac21d0dc323e86ba9f128 (patch)
treeefd6778dc54e5b9455f11950f205c880f2476fde /source3/rpc_server
parent81a3f7a5207d8e97e324578e7385303e9b7e8b3d (diff)
downloadsamba-8111d95655c23e0cd6fac21d0dc323e86ba9f128.tar.gz
samba-8111d95655c23e0cd6fac21d0dc323e86ba9f128.tar.bz2
samba-8111d95655c23e0cd6fac21d0dc323e86ba9f128.zip
s3:rpc_server: fix make_external_rpc_pipe_p() and create read and write queues
They are needed for the callers in rpc_server/srv_pipe_hnd.c. It seems I only looked at the caller in rpc_server/rpc_ncacn_np.c when I've done the change of commit e55426fe7926ae6f8afe5fa6cfc009e0c3b54e38. Thanks Volker for finding this :-) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 7 11:40:20 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c
index 71ac69fe15..896a53dcc0 100644
--- a/source3/rpc_server/rpc_ncacn_np.c
+++ b/source3/rpc_server/rpc_ncacn_np.c
@@ -606,6 +606,18 @@ struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx,
return NULL;
}
+ result->read_queue = tevent_queue_create(result, "np_read");
+ if (result->read_queue == NULL) {
+ DEBUG(0, ("tevent_queue_create failed\n"));
+ goto fail;
+ }
+
+ result->write_queue = tevent_queue_create(result, "np_write");
+ if (result->write_queue == NULL) {
+ DEBUG(0, ("tevent_queue_create failed\n"));
+ goto fail;
+ }
+
ev = s3_tevent_context_init(talloc_tos());
if (ev == NULL) {
DEBUG(0, ("s3_tevent_context_init failed\n"));