summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-11 16:34:15 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:49:57 -0700
commitb8dd1749e30615d26107b99baa264c6d334a8f9d (patch)
tree68c4f2dfd692be72d6ca68ccf61e54ec6356f4d5
parent9a42fe2d6de50117ea4b0d57819e32d389e787fb (diff)
downloadsamba-b8dd1749e30615d26107b99baa264c6d334a8f9d.tar.gz
samba-b8dd1749e30615d26107b99baa264c6d334a8f9d.tar.bz2
samba-b8dd1749e30615d26107b99baa264c6d334a8f9d.zip
smbd: Convert call_trans2setfilepathinfo to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-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 ce3f5a5380..dcd2af2320 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -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;
}