mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
smbd: always close the base_fsp even if the real close returned an error
Otherwise we may end up with share mode entry without an open file. Volker, Jeremy: please check... metze (This used to be commit 547eacf6058d2bc5b41b266b70f8f4747aca4eae)
This commit is contained in:
parent
175622fa58
commit
5b07337cc5
@ -665,10 +665,6 @@ NTSTATUS close_file(files_struct *fsp, enum file_close_type close_type)
|
||||
status = close_normal_file(fsp, close_type);
|
||||
}
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return status;
|
||||
}
|
||||
|
||||
if ((base_fsp != NULL) && (close_type != SHUTDOWN_CLOSE)) {
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user