1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s3:smbd: Make sure smb_fname is set and not NULL in dos_mode_post()

Found by covscan.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Andreas Schneider 2021-06-10 08:51:03 +02:00 committed by Noel Power
parent f44918e6c8
commit 9b7bef7f87

View File

@ -689,6 +689,7 @@ static uint32_t dos_mode_post(uint32_t dosmode,
if (fsp != NULL) {
smb_fname = fsp->fsp_name;
}
SMB_ASSERT(smb_fname != NULL);
/*
* According to MS-FSA a stream name does not have