1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3:rpcclient: make use of dcerpc_binding_set_abstract_syntax() in cmd_epmapper.c

We should not use dcerpc_binding internals.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher
2014-01-30 22:05:51 +01:00
committed by Günther Deschner
parent 3547872a76
commit 6fff55cf00

View File

@ -50,7 +50,13 @@ static NTSTATUS cmd_epmapper_map(struct rpc_pipe_client *p,
goto done;
}
map_binding->object = abstract_syntax;
status = dcerpc_binding_set_abstract_syntax(map_binding,
&abstract_syntax);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "dcerpc_binding_set_abstract_syntax returned %s\n",
nt_errstr(status));
goto done;
}
status = dcerpc_binding_build_tower(tmp_ctx, map_binding,
&map_tower.tower);