diff options
Diffstat (limited to 'source3/smbd')
-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; } |