git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e95b77
)
s3: Do an early return in close_remove_share_mode
author
Volker Lendecke
<vl@samba.org>
Fri, 1 Jun 2012 14:42:29 +0000
(16:42 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sun, 3 Jun 2012 15:23:28 +0000
(17:23 +0200)
Without "lck" we don't have much to clean up
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/close.c
patch
|
blob
|
history
diff --git
a/source3/smbd/close.c
b/source3/smbd/close.c
index d3232aae4f78a21195c2315bc139c691ceea9701..9b7e7ac7f505596e9fe4ba49665c77df9fbfcc0c 100644
(file)
--- 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) {