diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:23:53 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:56 -0700 |
commit | a062fb813e7e85cf9d493126e14dd62abb8f87e1 (patch) | |
tree | a507554aa5cbad7231ddff494387118572a3d71d /source3/smbd/reply.c | |
parent | 10f45a16b20204d79e1f6a24724da01137f30e60 (diff) | |
download | samba-a062fb813e7e85cf9d493126e14dd62abb8f87e1.tar.gz samba-a062fb813e7e85cf9d493126e14dd62abb8f87e1.tar.bz2 samba-a062fb813e7e85cf9d493126e14dd62abb8f87e1.zip |
smbd: Convert rename_internals_fsp to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 79aaf76043..92f6560fbb 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -6291,8 +6291,9 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, /* Make a copy of the dst smb_fname structs */ - status = copy_smb_filename(ctx, smb_fname_dst_in, &smb_fname_dst); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_dst = cp_smb_filename(ctx, smb_fname_dst_in); + if (smb_fname_dst == NULL) { + status = NT_STATUS_NO_MEMORY; goto out; } |