smbd: don't leak the fsp if close_file_smb() fails
authorRalph Boehme <slow@samba.org>
Mon, 10 Jul 2023 14:34:23 +0000 (16:34 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 10 Jul 2023 21:32:32 +0000 (21:32 +0000)
commit4da50463e1b75c06d5f8c066e8b4eff48186afb0
tree1693ca06f9b2212bea93cc719731a698ee7ca08d
parent61dfc8bc0695931e7dd7fed842d0561065af179c
smbd: don't leak the fsp if close_file_smb() fails

This can happen if DELETE-ON-CLOSE is set, but the deletion fails for some
reason.

The bug was introduced by 1808e5c133474eabc9d3cf91c2a92ec4d92d9fdd.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15417

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Jul 10 21:32:32 UTC 2023 on atb-devel-224
source3/smbd/smb2_close.c