summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-12 11:49:19 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:00 -0700
commit1675bf379c67f695c3826479f0d69109f82da3d4 (patch)
treed4ad2def573211bd435b2afe043a01cfcb4814d0 /source3/smbd
parent0b147201bd24cc71ed32376961bdfef4b8729dce (diff)
downloadsamba-1675bf379c67f695c3826479f0d69109f82da3d4.tar.gz
samba-1675bf379c67f695c3826479f0d69109f82da3d4.tar.bz2
samba-1675bf379c67f695c3826479f0d69109f82da3d4.zip
smbd: Convert filename_convert_internal to synthetic_smb_fname
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/filename.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 0be566f897..efa39f4119 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -1334,11 +1334,13 @@ static NTSTATUS filename_convert_internal(TALLOC_CTX *ctx,
SMB_STRUCT_STAT st;
ZERO_STRUCT(st);
st.st_ex_nlink = 1;
- status = create_synthetic_smb_fname_split(ctx,
+ *pp_smb_fname = synthetic_smb_fname_split(ctx,
name_in,
- &st,
- pp_smb_fname);
- return status;
+ &st);
+ if (*pp_smb_fname == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
+ return NT_STATUS_OK;
}
/*