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:
parent
f44918e6c8
commit
9b7bef7f87
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user