diff options
author | Jeremy Allison <jra@samba.org> | 2016-04-05 13:07:06 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-04-06 03:46:55 +0200 |
commit | f63b9a73b03971f41947c694e6952cd1e49b67c3 (patch) | |
tree | 1cc205ad5cbb72fbab3f8561c041346d8048dc08 /source3/libsmb/clilist.c | |
parent | 6eba42f927230e1a0c65ded4bc47ddacfb4a0ddb (diff) | |
download | samba-f63b9a73b03971f41947c694e6952cd1e49b67c3.tar.gz |
s3: libsmb: Fix error where short name length was read as 2 bytes, should be 1.
Reported by Thomas Dvorachek <tdvorachek@yahoo.com> from a Windows 10 server.
Confirmed in MS-CIFS 2.2.8.1.7.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11822
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr 6 03:46:55 CEST 2016 on sn-devel-144
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r-- | source3/libsmb/clilist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 94bbc573376..6438d3bce89 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -186,7 +186,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx, namelen = IVAL(p,0); p += 4; p += 4; /* EA size */ - slen = SVAL(p, 0); + slen = CVAL(p, 0); if (slen > 24) { /* Bad short name length. */ return pdata_end - base; |