1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

smbd: Convert smbd_smb2_close to cp_smb_filename

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2013-04-11 16:20:29 +02:00
committed by Jeremy Allison
parent fecf225068
commit 988a341d25

View File

@ -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);