From b8dd1749e30615d26107b99baa264c6d334a8f9d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 11 Apr 2013 16:34:15 +0200 Subject: smbd: Convert call_trans2setfilepathinfo to cp_smb_filename Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/trans2.c | 7 +++---- 1 file 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; } -- cgit