summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_close.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/smbd/smb2_close.c b/source3/smbd/smb2_close.c
index ee168c5466..c4f0f19535 100644
--- a/source3/smbd/smb2_close.c
+++ b/source3/smbd/smb2_close.c
@@ -190,11 +190,9 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
}
posix_open = fsp->posix_open;
- status = copy_smb_filename(talloc_tos(),
- fsp->fsp_name,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
+ smb_fname = cp_smb_filename(talloc_tos(), fsp->fsp_name);
+ if (smb_fname == NULL) {
+ return NT_STATUS_NO_MEMORY;
}
status = close_file(smbreq, fsp, NORMAL_CLOSE);