diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/files.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index cba79aefcf..a1680fe70e 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -723,12 +723,11 @@ NTSTATUS file_name_hash(connection_struct *conn, NTSTATUS fsp_set_smb_fname(struct files_struct *fsp, const struct smb_filename *smb_fname_in) { - NTSTATUS status; struct smb_filename *smb_fname_new; - status = copy_smb_filename(fsp, smb_fname_in, &smb_fname_new); - if (!NT_STATUS_IS_OK(status)) { - return status; + smb_fname_new = cp_smb_filename(fsp, smb_fname_in); + if (smb_fname_new == NULL) { + return NT_STATUS_NO_MEMORY; } TALLOC_FREE(fsp->fsp_name); |