summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-09-16 19:16:52 -0700
committerStefan Metzmacher <metze@samba.org>2013-09-17 12:27:18 +0200
commit1c41feb7893ae4a4f42c035f3c83f8b2950b7816 (patch)
treed60e968d03b249ccdc87dc06a622844573673a79 /source3/libsmb
parentaf290a03cef63c3b08446c1980de064a3b1c8804 (diff)
downloadsamba-1c41feb7893ae4a4f42c035f3c83f8b2950b7816.tar.gz
samba-1c41feb7893ae4a4f42c035f3c83f8b2950b7816.tar.bz2
samba-1c41feb7893ae4a4f42c035f3c83f8b2950b7816.zip
s3: libsmb : The short name length is only a one byte field.
The next byte is "undefined" and some vendors set this to 0xff (discovered in SNIA SDC lab tests). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 17 12:27:18 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cli_smb2_fnum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c
index 18b03f3d4f..3253f9df9c 100644
--- a/source3/libsmb/cli_smb2_fnum.c
+++ b/source3/libsmb/cli_smb2_fnum.c
@@ -412,7 +412,7 @@ static NTSTATUS parse_finfo_id_both_directory_info(uint8_t *dir_data,
if (namelen > (dir_data_length - 104)) {
return NT_STATUS_INFO_LENGTH_MISMATCH;
}
- slen = SVAL(dir_data + 68, 0);
+ slen = CVAL(dir_data + 68, 0);
if (slen > 24) {
return NT_STATUS_INFO_LENGTH_MISMATCH;
}