diff options
author | Aurelien Aptel <aaptel@suse.com> | 2016-02-25 14:39:10 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-02-27 05:25:40 +0100 |
commit | 9dfd531c19d3ffd17c4b8ecf6ad9eb1ab246ae5d (patch) | |
tree | c6d0652ee928925936fa9d4d3f791628666661aa /source3/libsmb | |
parent | bba426dbbbe0e4aebd99b78cff037eac754aa282 (diff) | |
download | samba-9dfd531c19d3ffd17c4b8ecf6ad9eb1ab246ae5d.tar.gz |
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
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clirap2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c index 931bc237f9a..6c49363eab5 100644 --- a/source3/libsmb/clirap2.c +++ b/source3/libsmb/clirap2.c @@ -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 */ { |