diff options
author | Günther Deschner <gd@samba.org> | 2018-12-18 11:10:04 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-01-09 10:13:14 +0100 |
commit | 5b0d2f79534616a1c76cc3ea70e8e5cc64261b60 (patch) | |
tree | aa7cd6eab1445757803e64b92aacbb11b0e36c71 | |
parent | daac354298349ca373ccc62b12c86df114c904e0 (diff) | |
download | samba-5b0d2f79534616a1c76cc3ea70e8e5cc64261b60.tar.gz |
s3-smbd: avoid assuming fsp is always intact after close_file call.
Instead use the already copied smb_fname directly.
https://bugzilla.samba.org/show_bug.cgi?id=13720
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Tue Dec 18 20:11:07 CET 2018 on sn-devel-144
(cherry picked from commit 90fab07f0710bb2061d3f14326c874dd049823fc)
-rw-r--r-- | source3/smbd/smb2_close.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_close.c b/source3/smbd/smb2_close.c index 992b52929ec..dea9512dfc6 100644 --- a/source3/smbd/smb2_close.c +++ b/source3/smbd/smb2_close.c @@ -263,7 +263,7 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req, status = close_file(smbreq, fsp, NORMAL_CLOSE); if (!NT_STATUS_IS_OK(status)) { DEBUG(5,("smbd_smb2_close: close_file[%s]: %s\n", - fsp_str_dbg(fsp), nt_errstr(status))); + smb_fname_str_dbg(smb_fname), nt_errstr(status))); return status; } |