s3-rpc_cli: pass down ndr_interface_table to rpc_transport_np_init_send().
authorGünther Deschner <gd@samba.org>
Fri, 24 May 2013 11:56:53 +0000 (13:56 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 5 Aug 2013 08:30:00 +0000 (10:30 +0200)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_client/rpc_transport.h
source3/rpc_client/rpc_transport_np.c

index 2b4a323797b00bb5d5300231d110c6fe3f5f5db4..72e76097320ae1a6cf89a028001c5fdf52a57826 100644 (file)
@@ -84,7 +84,7 @@ struct cli_state;
 struct tevent_req *rpc_transport_np_init_send(TALLOC_CTX *mem_ctx,
                                              struct tevent_context *ev,
                                              struct cli_state *cli,
-                                             const struct ndr_syntax_id *abstract_syntax);
+                                             const struct ndr_interface_table *table);
 NTSTATUS rpc_transport_np_init_recv(struct tevent_req *req,
                                    TALLOC_CTX *mem_ctx,
                                    struct rpc_cli_transport **presult);
index 59a29eaca9a68f62bc268e021c8eee31e7cf4531..804db580b14ea61a8005acc05be6ddf17d3c4d02 100644 (file)
@@ -34,7 +34,7 @@ static void rpc_transport_np_init_pipe_open(struct tevent_req *subreq);
 struct tevent_req *rpc_transport_np_init_send(TALLOC_CTX *mem_ctx,
                                              struct tevent_context *ev,
                                              struct cli_state *cli,
-                                             const struct ndr_syntax_id *abstract_syntax)
+                                             const struct ndr_interface_table *table)
 {
        struct tevent_req *req;
        struct rpc_transport_np_init_state *state;
@@ -47,7 +47,7 @@ struct tevent_req *rpc_transport_np_init_send(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
-       pipe_name = get_pipe_name_from_syntax(state, abstract_syntax);
+       pipe_name = get_pipe_name_from_syntax(state, &table->syntax_id);
        if (tevent_req_nomem(pipe_name, req)) {
                return tevent_req_post(req, ev);
        }
@@ -123,7 +123,7 @@ NTSTATUS rpc_transport_np_init(TALLOC_CTX *mem_ctx, struct cli_state *cli,
                goto fail;
        }
 
-       req = rpc_transport_np_init_send(frame, ev, cli, &table->syntax_id);
+       req = rpc_transport_np_init_send(frame, ev, cli, table);
        if (req == NULL) {
                status = NT_STATUS_NO_MEMORY;
                goto fail;