From 935992fc5502ac63cc0c1ebf00089e7f39558c82 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 21 Jun 2013 15:11:55 +0200 Subject: s3:smbd/close use common exit path do not return early here, but use the common exit path that will remove the share mode from the record Signed-off-by: Christian Ambach Reviewed-by: Volker Lendecke --- source3/smbd/close.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source3') diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 64faf989ff..093bb9f7ed 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -350,15 +350,8 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp, normal_close = (close_type == NORMAL_CLOSE || close_type == SHUTDOWN_CLOSE); if (!normal_close || !delete_file) { - - if (!del_share_mode(lck, fsp)) { - DEBUG(0, ("close_remove_share_mode: Could not delete " - "share entry for file %s\n", - fsp_str_dbg(fsp))); - } - - TALLOC_FREE(lck); - return NT_STATUS_OK; + status = NT_STATUS_OK; + goto done; } /* -- cgit