diff options
author | Günther Deschner <gd@samba.org> | 2013-05-17 16:10:13 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-08-05 10:29:59 +0200 |
commit | 77f7f2a976e5b95f3bd9f542b92926adee4f5fa6 (patch) | |
tree | 3bdbf7fb9d3744b2ad49edc2715ad3ad62181628 /source3/lib/netapi/cm.c | |
parent | fa37bbd9d06865d265bf554a3c49920f956f2185 (diff) | |
download | samba-77f7f2a976e5b95f3bd9f542b92926adee4f5fa6.tar.gz samba-77f7f2a976e5b95f3bd9f542b92926adee4f5fa6.tar.bz2 samba-77f7f2a976e5b95f3bd9f542b92926adee4f5fa6.zip |
s3-libnetapi: pass down ndr_interface_table to libnetapi_open_pipe().
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/lib/netapi/cm.c')
-rw-r--r-- | source3/lib/netapi/cm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/netapi/cm.c b/source3/lib/netapi/cm.c index 786fd94957..310b6d2026 100644 --- a/source3/lib/netapi/cm.c +++ b/source3/lib/netapi/cm.c @@ -234,7 +234,7 @@ static NTSTATUS pipe_cm_open(TALLOC_CTX *ctx, WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx, const char *server_name, - const struct ndr_syntax_id *interface, + const struct ndr_interface_table *table, struct rpc_pipe_client **presult) { struct rpc_pipe_client *result = NULL; @@ -251,10 +251,10 @@ WERROR libnetapi_open_pipe(struct libnetapi_ctx *ctx, return werr; } - status = pipe_cm_open(ctx, ipc, interface, &result); + status = pipe_cm_open(ctx, ipc, &table->syntax_id, &result); if (!NT_STATUS_IS_OK(status)) { libnetapi_set_error_string(ctx, "failed to open PIPE %s: %s", - get_pipe_name_from_syntax(talloc_tos(), interface), + get_pipe_name_from_syntax(talloc_tos(), &table->syntax_id), get_friendly_nt_error_msg(status)); return WERR_DEST_NOT_FOUND; } @@ -277,7 +277,7 @@ WERROR libnetapi_get_binding_handle(struct libnetapi_ctx *ctx, *binding_handle = NULL; - result = libnetapi_open_pipe(ctx, server_name, &table->syntax_id, &pipe_cli); + result = libnetapi_open_pipe(ctx, server_name, table, &pipe_cli); if (!W_ERROR_IS_OK(result)) { return result; } |