diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:20:29 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:56 -0700 |
commit | 988a341d25bf76e80c8ad73c668200869fae6774 (patch) | |
tree | 2d5140b15a4fc31889070f4aee842887758c94db /source3/smbd | |
parent | fecf225068e1f6127f55db63a32b8f29bdae51ff (diff) | |
download | samba-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/smbd')
-rw-r--r-- | source3/smbd/smb2_close.c | 8 |
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); |