s3:rpc_server: fix make_external_rpc_pipe_p() and create read and write queues
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Feb 2011 09:29:55 +0000 (10:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 7 Feb 2011 10:40:20 +0000 (11:40 +0100)
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

source3/rpc_server/rpc_ncacn_np.c

index 71ac69fe15308ed125240a5f77cc05a85dbe86e4..896a53dcc00b090b603f228bdf739475c5372915 100644 (file)
@@ -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"));