mirror of
https://github.com/samba-team/samba.git
synced 2025-02-01 05:47:28 +03:00
s4:libnet: make use of dcerpc_binding_dup() in libnet_join.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
e42a674625
commit
e5e8757887
@ -93,15 +93,14 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J
|
||||
r->out.error_string = NULL;
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
drsuapi_binding = talloc_zero(tmp_ctx, struct dcerpc_binding);
|
||||
|
||||
drsuapi_binding = dcerpc_binding_dup(tmp_ctx, samr_binding);
|
||||
if (!drsuapi_binding) {
|
||||
r->out.error_string = NULL;
|
||||
talloc_free(tmp_ctx);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
*drsuapi_binding = *samr_binding;
|
||||
|
||||
|
||||
/* DRSUAPI is only available on IP_TCP, and locally on NCALRPC */
|
||||
if (drsuapi_binding->transport != NCALRPC) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user