1
0
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:
Stefan Metzmacher 2008-04-01 18:18:38 +02:00
parent 175622fa58
commit 5b07337cc5

View File

@ -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)) {
/*