summaryrefslogtreecommitdiffstats
path: root/source4/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-30 22:04:11 +0100
committerGünther Deschner <gd@samba.org>2014-02-11 16:20:32 +0100
commite5e8757887bbfbc063a0a54dee3021e2e2486717 (patch)
treeb448e07fac3555c1ebcc5754757e7aa00bef7940 /source4/libnet
parente42a6746257953c35bec3bc5877d7bcd7d77b3aa (diff)
downloadsamba-e5e8757887bbfbc063a0a54dee3021e2e2486717.tar.gz
samba-e5e8757887bbfbc063a0a54dee3021e2e2486717.tar.xz
samba-e5e8757887bbfbc063a0a54dee3021e2e2486717.zip
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>
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_join.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index 8c1b57ddde1..d9261c7949d 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -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) {