1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r4492: r.in.info is a pointer that needs to be allocated before use

(This used to be commit f830adc54a)
This commit is contained in:
Andrew Tridgell 2005-01-02 23:44:08 +00:00 committed by Gerald (Jerry) Carter
parent 160ff29bc4
commit 6f5fc8890c

View File

@ -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,