From c41b6e5c5e7fcdbd98c1eb2bea08378b47d343d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Fri, 24 May 2013 13:52:05 +0200 Subject: [PATCH] s3-rpc_cli: pass down ndr_interface_table to rpc_transport_np_init(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- source3/rpc_client/cli_pipe.c | 2 +- source3/rpc_client/rpc_transport.h | 2 +- source3/rpc_client/rpc_transport_np.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index a378f51a8407..1e296ee80311 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 bc115dda06f6..2b4a323797b0 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 78caa5bae70f..59a29eaca9a6 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; -- 2.34.1