summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:26:45 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commit0831de71e761e2f764d9ad091b39ce76bc3b67da (patch)
tree6a4d89fb0d6cd965b2a9919f916e8c5deda07cc2
parent1f39074b8338855033ffc1484e56ede6a86f6c1a (diff)
downloadsamba-0831de71e761e2f764d9ad091b39ce76bc3b67da.tar.gz
samba-0831de71e761e2f764d9ad091b39ce76bc3b67da.tar.bz2
samba-0831de71e761e2f764d9ad091b39ce76bc3b67da.zip
smbd: Convert fsp_set_smb_fname to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/files.c7
1 files changed, 3 insertions, 4 deletions
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);