mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3/libsmb/clirap2.c: use actual buffer size
data used to be a stack allocated array but was changed to a heap allocated buffer by commit 95a81a3. Update sizeof(data) to data_size. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ira Cooper <ira@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Feb 27 05:25:40 CET 2016 on sn-devel-144
This commit is contained in:
parent
bba426dbbb
commit
9dfd531c19
@ -331,7 +331,7 @@ int cli_NetGroupAdd(struct cli_state *cli, struct rap_group_info_1 *grinfo)
|
||||
|
||||
if (cli_api(cli,
|
||||
param, sizeof(param), 1024, /* Param, length, maxlen */
|
||||
data, soffset, sizeof(data), /* data, length, maxlen */
|
||||
data, soffset, data_size, /* data, length, maxlen */
|
||||
&rparam, &rprcnt, /* return params, length */
|
||||
&rdata, &rdrcnt)) /* return data, length */
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user