mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3:smbd: Remove unnessesary NULL check for fsp
We already dereference fsp earlier. So if it is NULL it already segfaulted much earlier. 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
d6eff9c413
commit
8204e5f93f
@ -7919,7 +7919,7 @@ static NTSTATUS smb_set_file_basic_info(connection_struct *conn,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (fsp != NULL && fsp->fsp_flags.modified) {
|
||||
if (fsp->fsp_flags.modified) {
|
||||
trigger_write_time_update_immediate(fsp);
|
||||
}
|
||||
return NT_STATUS_OK;
|
||||
@ -7964,7 +7964,7 @@ static NTSTATUS smb_set_info_standard(connection_struct *conn,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (fsp != NULL && fsp->fsp_flags.modified) {
|
||||
if (fsp->fsp_flags.modified) {
|
||||
trigger_write_time_update_immediate(fsp);
|
||||
}
|
||||
return NT_STATUS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user