summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:20:29 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:56 -0700
commit988a341d25bf76e80c8ad73c668200869fae6774 (patch)
tree2d5140b15a4fc31889070f4aee842887758c94db /source3
parentfecf225068e1f6127f55db63a32b8f29bdae51ff (diff)
downloadsamba-988a341d25bf76e80c8ad73c668200869fae6774.tar.gz
samba-988a341d25bf76e80c8ad73c668200869fae6774.tar.bz2
samba-988a341d25bf76e80c8ad73c668200869fae6774.zip
smbd: Convert smbd_smb2_close to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-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);