mirror of
https://github.com/samba-team/samba.git
synced 2025-08-06 17:32:29 +03:00
smbd: Convert fsp_set_smb_fname to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
1f39074b83
commit
0831de71e7
@ -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);
|
||||
|
Reference in New Issue
Block a user