smbd: Convert rename_internals_fsp to synthetic_smb_fname
authorVolker Lendecke <vl@samba.org>
Mon, 15 Apr 2013 09:09:32 +0000 (11:09 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Apr 2013 21:50:01 +0000 (14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index d65161dd5886b0d0a7cfe169d46b7f58e6e5b774..cff1aa74986533d96c718884bfb4f0b3ca09e315 100644 (file)
@@ -6329,10 +6329,10 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
                 * Create an smb_filename struct using the original last
                 * component of the destination.
                 */
-               status = create_synthetic_smb_fname_split(ctx,
-                   smb_fname_dst->original_lcomp, NULL,
-                   &smb_fname_orig_lcomp);
-               if (!NT_STATUS_IS_OK(status)) {
+               smb_fname_orig_lcomp = synthetic_smb_fname_split(
+                       ctx, smb_fname_dst->original_lcomp, NULL);
+               if (smb_fname_orig_lcomp == NULL) {
+                       status = NT_STATUS_NO_MEMORY;
                        TALLOC_FREE(fname_dst_lcomp_base_mod);
                        goto out;
                }