diff options
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index da0c1da290..14a2e0fa17 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -6436,11 +6436,10 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn, goto out; } /* Create an smb_fname to call rename_internals_fsp() */ - status = create_synthetic_smb_fname(ctx, - base_name, NULL, - NULL, - &smb_fname_dst); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_dst = synthetic_smb_fname( + ctx, base_name, NULL, NULL); + if (smb_fname_dst == NULL) { + status = NT_STATUS_NO_MEMORY; goto out; } } |