From 75911f94b860bcc7186390f5372ede3f6f92024e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 12 Apr 2013 11:41:20 +0200 Subject: [PATCH] smbd: Convert vfs_default_durable_reconnect to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/durable.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c index 32fa8187e5d..cf837aa2cfe 100644 --- a/source3/smbd/durable.c +++ b/source3/smbd/durable.c @@ -616,12 +616,10 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn, } /* Create an smb_filename with stream_name == NULL. */ - status = create_synthetic_smb_fname(talloc_tos(), - cookie.base_name, - NULL, NULL, - &smb_fname); - if (!NT_STATUS_IS_OK(status)) { - return status; + smb_fname = synthetic_smb_fname(talloc_tos(), cookie.base_name, + NULL, NULL); + if (smb_fname == NULL) { + return NT_STATUS_NO_MEMORY; } ret = SMB_VFS_LSTAT(conn, smb_fname); -- 2.11.4.GIT