smbd: Convert copy_file to cp_smb_filename
authorVolker Lendecke <vl@samba.org>
Thu, 11 Apr 2013 14:25:10 +0000 (16:25 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:49:56 +0000 (14:49 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index 92f6560fbb99dd0df26c5c488ffcb4e2408289ad..d65161dd5886b0d0a7cfe169d46b7f58e6e5b774 100644 (file)
@@ -7036,9 +7036,9 @@ NTSTATUS copy_file(TALLOC_CTX *ctx,
        NTSTATUS status;
 
 
-       status = copy_smb_filename(ctx, smb_fname_dst, &smb_fname_dst_tmp);
-       if (!NT_STATUS_IS_OK(status)) {
-               return status;
+       smb_fname_dst_tmp = cp_smb_filename(ctx, smb_fname_dst);
+       if (smb_fname_dst_tmp == NULL) {
+               return NT_STATUS_NO_MEMORY;
        }
 
        /*