summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-16 15:29:03 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-29 09:21:25 +0100
commit17646071503f166eab31721edab9138141449db1 (patch)
tree2b944a3f2712f5059513f5802f6955444f94857e
parent5baa44345f6b6fbf4c922f5bc60484517794da2d (diff)
downloadsamba-17646071503f166eab31721edab9138141449db1.tar.gz
samba-17646071503f166eab31721edab9138141449db1.tar.bz2
samba-17646071503f166eab31721edab9138141449db1.zip
s4:torture/rpc: use talloc_zero() in torture_join_domain()
metze
-rw-r--r--source4/torture/rpc/testjoin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index 48408ed5c1..eb49b8e3ab 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -430,10 +430,10 @@ _PUBLIC_ struct test_join *torture_join_domain(struct torture_context *tctx,
struct samr_SetUserInfo s;
union samr_UserInfo u;
- tj = talloc(tctx, struct test_join);
+ tj = talloc_zero(tctx, struct test_join);
if (!tj) return NULL;
- libnet_r = talloc(tj, struct libnet_JoinDomain);
+ libnet_r = talloc_zero(tj, struct libnet_JoinDomain);
if (!libnet_r) {
talloc_free(tj);
return NULL;