mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3-rpc_cli: pass down ndr_interface_table to rpc_pipe_open_ncalrpc().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
0ce2178f2f
commit
9b4fb5b074
@ -365,7 +365,7 @@ static NTSTATUS ep_register(TALLOC_CTX *mem_ctx,
|
||||
|
||||
status = rpc_pipe_open_ncalrpc(tmp_ctx,
|
||||
ncalrpc_sock,
|
||||
&ndr_table_epmapper.syntax_id,
|
||||
&ndr_table_epmapper,
|
||||
&cli);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
goto done;
|
||||
|
@ -2654,7 +2654,7 @@ NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const char *host,
|
||||
Create a rpc pipe client struct, connecting to a unix domain socket
|
||||
********************************************************************/
|
||||
NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
|
||||
const struct ndr_syntax_id *abstract_syntax,
|
||||
const struct ndr_interface_table *table,
|
||||
struct rpc_pipe_client **presult)
|
||||
{
|
||||
struct rpc_pipe_client *result;
|
||||
@ -2668,7 +2668,7 @@ NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
result->abstract_syntax = *abstract_syntax;
|
||||
result->abstract_syntax = table->syntax_id;
|
||||
result->transfer_syntax = ndr_transfer_syntax_ndr;
|
||||
|
||||
result->desthost = get_myname(result);
|
||||
|
@ -71,7 +71,7 @@ NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx,
|
||||
struct rpc_pipe_client **presult);
|
||||
|
||||
NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
|
||||
const struct ndr_syntax_id *abstract_syntax,
|
||||
const struct ndr_interface_table *table,
|
||||
struct rpc_pipe_client **presult);
|
||||
|
||||
struct dcerpc_binding_handle *rpccli_bh_create(struct rpc_pipe_client *c);
|
||||
|
Loading…
x
Reference in New Issue
Block a user