summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-06-21 15:11:55 +0200
committerChristian Ambach <ambi@samba.org>2013-06-25 12:54:06 +0200
commit935992fc5502ac63cc0c1ebf00089e7f39558c82 (patch)
treec19c89805e0c2ea02636292590fd3eed0f3d051e /source3/smbd
parent245b5ffddef945e071ea1b5d26de1da80a0b7ae8 (diff)
downloadsamba-935992fc5502ac63cc0c1ebf00089e7f39558c82.tar.gz
samba-935992fc5502ac63cc0c1ebf00089e7f39558c82.tar.bz2
samba-935992fc5502ac63cc0c1ebf00089e7f39558c82.zip
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 <ambi@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c11
1 files changed, 2 insertions, 9 deletions
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;
}
/*