diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 5781c61943..9e2eae8a41 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -5216,10 +5216,9 @@ static void call_trans2qfilepathinfo(connection_struct *conn, return; } - 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; } |