summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-05-24 13:52:05 +0200
committerAndreas Schneider <asn@samba.org>2013-08-05 10:30:00 +0200
commitc41b6e5c5e7fcdbd98c1eb2bea08378b47d343d4 (patch)
tree6be049cbd496b0caeba8d2d2dadb00fd977db2bf /source3
parent7bdcfcb37c5b96ee6aa0cecffd89c6d17291fe62 (diff)
downloadsamba-c41b6e5c5e7fcdbd98c1eb2bea08378b47d343d4.tar.gz
samba-c41b6e5c5e7fcdbd98c1eb2bea08378b47d343d4.tar.bz2
samba-c41b6e5c5e7fcdbd98c1eb2bea08378b47d343d4.zip
s3-rpc_cli: pass down ndr_interface_table to rpc_transport_np_init().
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/cli_pipe.c2
-rw-r--r--source3/rpc_client/rpc_transport.h2
-rw-r--r--source3/rpc_client/rpc_transport_np.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index a378f51a84..1e296ee803 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2779,7 +2779,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli,
return NT_STATUS_NO_MEMORY;
}
- status = rpc_transport_np_init(result, cli, &table->syntax_id,
+ status = rpc_transport_np_init(result, cli, table,
&result->transport);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(result);
diff --git a/source3/rpc_client/rpc_transport.h b/source3/rpc_client/rpc_transport.h
index bc115dda06..2b4a323797 100644
--- a/source3/rpc_client/rpc_transport.h
+++ b/source3/rpc_client/rpc_transport.h
@@ -89,7 +89,7 @@ NTSTATUS rpc_transport_np_init_recv(struct tevent_req *req,
TALLOC_CTX *mem_ctx,
struct rpc_cli_transport **presult);
NTSTATUS rpc_transport_np_init(TALLOC_CTX *mem_ctx, struct cli_state *cli,
- const struct ndr_syntax_id *abstract_syntax,
+ const struct ndr_interface_table *table,
struct rpc_cli_transport **presult);
/* The following definitions come from rpc_client/rpc_transport_sock.c */
diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c
index 78caa5bae7..59a29eaca9 100644
--- a/source3/rpc_client/rpc_transport_np.c
+++ b/source3/rpc_client/rpc_transport_np.c
@@ -109,7 +109,7 @@ NTSTATUS rpc_transport_np_init_recv(struct tevent_req *req,
}
NTSTATUS rpc_transport_np_init(TALLOC_CTX *mem_ctx, struct cli_state *cli,
- const struct ndr_syntax_id *abstract_syntax,
+ const struct ndr_interface_table *table,
struct rpc_cli_transport **presult)
{
TALLOC_CTX *frame = talloc_stackframe();
@@ -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, abstract_syntax);
+ req = rpc_transport_np_init_send(frame, ev, cli, &table->syntax_id);
if (req == NULL) {
status = NT_STATUS_NO_MEMORY;
goto fail;