From: Andrew Tridgell Date: Sun, 2 Jan 2005 23:44:08 +0000 (+0000) Subject: r4492: r.in.info is a pointer that needs to be allocated before use X-Git-Tag: samba-4.0.0alpha6~801^3~12100 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=6f5fc8890cf2820f7549479da670384644ead190;ds=sidebyside r4492: r.in.info is a pointer that needs to be allocated before use (This used to be commit f830adc54ada7f38f964a6ccb5270d2791325dd5) --- diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index ae62f94cb00..ea645d72d49 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -629,6 +629,7 @@ static BOOL test_SetAliasInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, r.in.alias_handle = handle; r.in.level = levels[i]; + r.in.info = talloc_p(mem_ctx, union samr_AliasInfo); switch (r.in.level) { case 2 : init_samr_String(&r.in.info->name,TEST_ALIASNAME); break; case 3 : init_samr_String(&r.in.info->description,