summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:27:48 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commite2e45bd9cd6fa9a48fe8be15da4406dfcc55057a (patch)
treebc274d9a011eb832049dd857945b86ec2d6e48a9 /source3/smbd
parent0831de71e761e2f764d9ad091b39ce76bc3b67da (diff)
downloadsamba-e2e45bd9cd6fa9a48fe8be15da4406dfcc55057a.tar.gz
samba-e2e45bd9cd6fa9a48fe8be15da4406dfcc55057a.tar.bz2
samba-e2e45bd9cd6fa9a48fe8be15da4406dfcc55057a.zip
smbd: Convert call_trans2qfilepathinfo to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c7
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;
}