diff options
author | ChenXiaoSong <chenxiaosong@kylinos.cn> | 2024-08-22 08:20:51 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-08-22 09:52:00 -0500 |
commit | 4e8771a3666c8f216eefd6bd2fd50121c6c437db (patch) | |
tree | 2109f0f7167fdb75f395bb79dfb2bf347df9d918 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 2186a116538a715b20e15f84fdd3545e5fe0a39b (diff) |
smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
null-ptr-deref will occur when (req_op_level == SMB2_OPLOCK_LEVEL_LEASE)
and parse_lease_state() return NULL.
Fix this by check if 'lease_ctx_info' is NULL.
Additionally, remove the redundant parentheses in
parse_durable_handle_context().
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions