mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
smbd: Convert call_trans2setfilepathinfo to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9a42fe2d6d
commit
b8dd1749e3
@ -8063,10 +8063,9 @@ static void call_trans2setfilepathinfo(connection_struct *conn,
|
||||
}
|
||||
info_level = SVAL(params,2);
|
||||
|
||||
status = copy_smb_filename(talloc_tos(), fsp->fsp_name,
|
||||
&smb_fname);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
reply_nterror(req, status);
|
||||
smb_fname = cp_smb_filename(talloc_tos(), fsp->fsp_name);
|
||||
if (smb_fname == NULL) {
|
||||
reply_nterror(req, NT_STATUS_NO_MEMORY);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user