The branch, master has been updated via 4da50463e1b smbd: don't leak the fsp if close_file_smb() fails from 61dfc8bc069 ctdb-server: Avoid logging a count of 0 resent calls
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 4da50463e1b75c06d5f8c066e8b4eff48186afb0 Author: Ralph Boehme <s...@samba.org> Date: Mon Jul 10 16:34:23 2023 +0200 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 <s...@samba.org> Reviewed-by: Jeremy Allison <j...@samba.org> Autobuild-User(master): Jeremy Allison <j...@samba.org> Autobuild-Date(master): Mon Jul 10 21:32:32 UTC 2023 on atb-devel-224 ----------------------------------------------------------------------- Summary of changes: source3/smbd/smb2_close.c | 2 ++ 1 file changed, 2 insertions(+) Changeset truncated at 500 lines: diff --git a/source3/smbd/smb2_close.c b/source3/smbd/smb2_close.c index 236d5b79f91..996ca8b283c 100644 --- a/source3/smbd/smb2_close.c +++ b/source3/smbd/smb2_close.c @@ -225,6 +225,8 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req, if (!NT_STATUS_IS_OK(status)) { DEBUG(5,("smbd_smb2_close: close_file[%s]: %s\n", smb_fname_str_dbg(smb_fname), nt_errstr(status))); + file_free(smbreq, fsp); + *_fsp = fsp = NULL; return status; } -- Samba Shared Repository