From 10d8d7d0bdea0e472c76241936cbfa70f1a60af8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:09:32 +0200 Subject: [PATCH] smbd: Convert rename_internals_fsp to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/reply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index d65161dd588..cff1aa74986 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -6329,10 +6329,10 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, * Create an smb_filename struct using the original last * component of the destination. */ - status = create_synthetic_smb_fname_split(ctx, - smb_fname_dst->original_lcomp, NULL, - &smb_fname_orig_lcomp); - if (!NT_STATUS_IS_OK(status)) { + smb_fname_orig_lcomp = synthetic_smb_fname_split( + ctx, smb_fname_dst->original_lcomp, NULL); + if (smb_fname_orig_lcomp == NULL) { + status = NT_STATUS_NO_MEMORY; TALLOC_FREE(fname_dst_lcomp_base_mod); goto out; } -- 2.11.4.GIT