diff options
author | Volker Lendecke <vl@samba.org> | 2013-08-27 09:06:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-08-28 23:37:08 +0200 |
commit | ac41df91a5a425633fc716ca02187e753879d795 (patch) | |
tree | e9aeb495f1534f54810ebb366bf331bbb2456eb6 /source3/smbd/smb2_getinfo.c | |
parent | 53123996033594f68a3fc9037474aada3aef0750 (diff) | |
download | samba-ac41df91a5a425633fc716ca02187e753879d795.tar.gz samba-ac41df91a5a425633fc716ca02187e753879d795.tar.bz2 samba-ac41df91a5a425633fc716ca02187e753879d795.zip |
smbd: qfsinfo has fixed/variable buffers
The error message will have to change depending whether the buffer is
too small for the fixed or variable buffers
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10106
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_getinfo.c')
-rw-r--r-- | source3/smbd/smb2_getinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c index 0d75c36344..698e7752dd 100644 --- a/source3/smbd/smb2_getinfo.c +++ b/source3/smbd/smb2_getinfo.c @@ -410,6 +410,7 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx, uint16_t file_info_level; char *data = NULL; int data_size = 0; + size_t fixed_portion; /* the levels directly map to the passthru levels */ file_info_level = in_file_info_class + 1000; @@ -418,6 +419,7 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx, file_info_level, STR_UNICODE, in_output_buffer_length, + &fixed_portion, fsp->fsp_name, &data, &data_size); |