From 3794574bc159a0c657a1732a6c2d1b47f8166511 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:28:16 +0200 Subject: vfs: Convert stream_smb_fname to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_depot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index b74e774f08..335640fd67 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -367,10 +367,10 @@ static NTSTATUS stream_smb_fname(vfs_handle_struct *handle, DEBUG(10, ("stream filename = %s\n", stream_fname)); /* Create an smb_filename with stream_name == NULL. */ - status = create_synthetic_smb_fname(talloc_tos(), stream_fname, NULL, - NULL, smb_fname_out); - if (!NT_STATUS_IS_OK(status)) { - return status; + *smb_fname_out = synthetic_smb_fname( + talloc_tos(), stream_fname, NULL, NULL); + if (*smb_fname_out == NULL) { + return NT_STATUS_NO_MEMORY; } return NT_STATUS_OK; -- cgit