From 0831de71e761e2f764d9ad091b39ce76bc3b67da Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2013 16:26:45 +0200 Subject: smbd: Convert fsp_set_smb_fname to cp_smb_filename Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/files.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/smbd/files.c b/source3/smbd/files.c index cba79aefcf..a1680fe70e 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -723,12 +723,11 @@ NTSTATUS file_name_hash(connection_struct *conn, NTSTATUS fsp_set_smb_fname(struct files_struct *fsp, const struct smb_filename *smb_fname_in) { - NTSTATUS status; struct smb_filename *smb_fname_new; - status = copy_smb_filename(fsp, smb_fname_in, &smb_fname_new); - if (!NT_STATUS_IS_OK(status)) { - return status; + smb_fname_new = cp_smb_filename(fsp, smb_fname_in); + if (smb_fname_new == NULL) { + return NT_STATUS_NO_MEMORY; } TALLOC_FREE(fsp->fsp_name); -- cgit