summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-05-24 13:56:53 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:00 +0200
commitb19e7e6638a5dd53e3c6e6701f78bf31184ed493 (patch)
tree099a2fd397f0354df9f147786ff8a9db716541ee /source3
parentc41b6e5c5e7fcdbd98c1eb2bea08378b47d343d4 (diff)
downloadsamba-b19e7e6638a5dd53e3c6e6701f78bf31184ed493.tar.gz
samba-b19e7e6638a5dd53e3c6e6701f78bf31184ed493.tar.bz2
samba-b19e7e6638a5dd53e3c6e6701f78bf31184ed493.zip
s3-rpc_cli: pass down ndr_interface_table to rpc_transport_np_init_send().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/rpc_transport.h2
-rw-r--r--source3/rpc_client/rpc_transport_np.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_client/rpc_transport.h b/source3/rpc_client/rpc_transport.h
index 2b4a323797..72e7609732 100644
--- a/source3/rpc_client/rpc_transport.h
+++ b/source3/rpc_client/rpc_transport.h
@@ -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);
diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c
index 59a29eaca9..804db580b1 100644
--- a/source3/rpc_client/rpc_transport_np.c
+++ b/source3/rpc_client/rpc_transport_np.c
@@ -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;