summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-16 15:28:20 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-29 09:21:25 +0100
commit5baa44345f6b6fbf4c922f5bc60484517794da2d (patch)
treed4ef5579b7aa2df8472e304c7d6821b99ce7ccc4
parent2bff209128b85bd870ad36fa00ffcc92edbbab08 (diff)
downloadsamba-5baa44345f6b6fbf4c922f5bc60484517794da2d.tar.gz
samba-5baa44345f6b6fbf4c922f5bc60484517794da2d.tar.bz2
samba-5baa44345f6b6fbf4c922f5bc60484517794da2d.zip
s4:libnet: use talloc_zero(struct libnet_JoinDomain) in libnet_Join_member()
metze
-rw-r--r--source4/libnet/libnet_join.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index a1124fdd62..0ed14a54e8 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -909,7 +909,7 @@ NTSTATUS libnet_Join_member(struct libnet_context *ctx,
return NT_STATUS_NO_MEMORY;
}
- r2 = talloc(tmp_mem, struct libnet_JoinDomain);
+ r2 = talloc_zero(tmp_mem, struct libnet_JoinDomain);
if (!r2) {
r->out.error_string = NULL;
talloc_free(tmp_mem);
@@ -939,7 +939,6 @@ NTSTATUS libnet_Join_member(struct libnet_context *ctx,
/*
* join the domain
*/
- ZERO_STRUCTP(r2);
r2->in.domain_name = r->in.domain_name;
r2->in.account_name = account_name;
r2->in.netbios_name = netbios_name;