summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-01 16:42:29 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-03 17:23:28 +0200
commitb9e11bd63ee6e1f1aac8d3b8a61ef0a4734cdd98 (patch)
tree848a9e2cb79fb87f14c2ed30f728bcc2ce252cb2 /source3
parent2e95b77c993045cb448d36240ea38b44b5418c7e (diff)
downloadsamba-b9e11bd63ee6e1f1aac8d3b8a61ef0a4734cdd98.tar.gz
samba-b9e11bd63ee6e1f1aac8d3b8a61ef0a4734cdd98.tar.bz2
samba-b9e11bd63ee6e1f1aac8d3b8a61ef0a4734cdd98.zip
s3: Do an early return in close_remove_share_mode
Without "lck" we don't have much to clean up Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/close.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index d3232aae4f..9b7e7ac7f5 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -361,8 +361,7 @@ static NTSTATUS close_remove_share_mode(files_struct *fsp,
if (lck == NULL) {
DEBUG(0, ("close_remove_share_mode: Could not get share mode "
"lock for file %s\n", fsp_str_dbg(fsp)));
- status = NT_STATUS_INVALID_PARAMETER;
- goto done;
+ return NT_STATUS_INVALID_PARAMETER;
}
if (fsp->write_time_forced) {