From 5baa44345f6b6fbf4c922f5bc60484517794da2d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 16 Nov 2011 15:28:20 +0100 Subject: s4:libnet: use talloc_zero(struct libnet_JoinDomain) in libnet_Join_member() metze --- source4/libnet/libnet_join.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/libnet') 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; -- cgit