mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
smbd: Ensure close_directory() and close_normal_file() only deal with is_fsa files.
This must be the case, so assert it. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
7c5476baad
commit
de80649860
@ -706,6 +706,8 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
|
||||
connection_struct *conn = fsp->conn;
|
||||
bool is_durable = false;
|
||||
|
||||
SMB_ASSERT(fsp->fsp_flags.is_fsa);
|
||||
|
||||
assert_no_pending_aio(fsp, close_type);
|
||||
|
||||
while (talloc_array_length(fsp->blocked_smb1_lock_reqs) != 0) {
|
||||
@ -1149,6 +1151,8 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
|
||||
const struct security_unix_token *del_token = NULL;
|
||||
NTSTATUS notify_status;
|
||||
|
||||
SMB_ASSERT(fsp->fsp_flags.is_fsa);
|
||||
|
||||
if (fsp->conn->sconn->using_smb2) {
|
||||
notify_status = NT_STATUS_NOTIFY_CLEANUP;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user