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_np().
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
34cc4b4095
commit
8cd3a06051
@ -2747,7 +2747,7 @@ static int rpc_pipe_client_np_ref_destructor(struct rpc_pipe_client_np_ref *np_r
|
||||
****************************************************************************/
|
||||
|
||||
static NTSTATUS rpc_pipe_open_np(struct cli_state *cli,
|
||||
const struct ndr_syntax_id *abstract_syntax,
|
||||
const struct ndr_interface_table *table,
|
||||
struct rpc_pipe_client **presult)
|
||||
{
|
||||
struct rpc_pipe_client *result;
|
||||
@ -2765,7 +2765,7 @@ static NTSTATUS rpc_pipe_open_np(struct cli_state *cli,
|
||||
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 = talloc_strdup(result, smbXcli_conn_remote_name(cli->conn));
|
||||
result->srv_name_slash = talloc_asprintf_strupper_m(
|
||||
@ -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, abstract_syntax,
|
||||
status = rpc_transport_np_init(result, cli, &table->syntax_id,
|
||||
&result->transport);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
TALLOC_FREE(result);
|
||||
@ -2825,7 +2825,7 @@ static NTSTATUS cli_rpc_pipe_open(struct cli_state *cli,
|
||||
smbXcli_conn_remote_sockaddr(cli->conn),
|
||||
&table->syntax_id, presult);
|
||||
case NCACN_NP:
|
||||
return rpc_pipe_open_np(cli, &table->syntax_id, presult);
|
||||
return rpc_pipe_open_np(cli, table, presult);
|
||||
default:
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user