diff options
author | Marios Makassikis <mmakassikis@freebox.fr> | 2021-06-26 22:56:48 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-29 15:06:23 +0900 |
commit | a5a25a114ab2412831f063361360eb1192ca6151 (patch) | |
tree | ca0bae6150b3d6ee2ac86389925086b6fe3302e4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e294f78d34785151cb6d7199ff61d110f9520e65 (diff) |
ksmbd: Relax credit_charge check in smb2_validate_credit_charge()
smb2_validate_credit_charge() checks the CreditCharge field in the
request is valid with regards to the payload size.
The current implementation rejects requests with CreditCharge = 0 and a
payload < 64K, even though they should be accepted.
Set CreditCharge to a minimum value of 1 to avoid rejecting such
requests. This matches what samba4 does.
Fixes share enumeration for jcifs-ng clients.
Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions