diff options
| author | Yiqi Sun <sunyiqixm@gmail.com> | 2025-11-11 15:05:39 +0800 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-11-11 10:01:47 -0600 |
| commit | ed6612165b74f09db00ef0abaf9831895ab28b7f (patch) | |
| tree | 0f67ad498d2c49771b6663262b714f3783acd040 /net/unix/af_unix.c | |
| parent | e8c73eb7db0a498cd4b22d2819e6ab1a6f506bd6 (diff) | |
smb: fix invalid username check in smb3_fs_context_parse_param()
Since the maximum return value of strnlen(..., CIFS_MAX_USERNAME_LEN)
is CIFS_MAX_USERNAME_LEN, length check in smb3_fs_context_parse_param()
is always FALSE and invalid.
Fix the comparison in if statement.
Signed-off-by: Yiqi Sun <sunyiqixm@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
