git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4287ea1
)
s3: smbd: Don't allow force disconnect of a connection already being disconnected.
author
Jeremy Allison
<jra@samba.org>
Tue, 10 Mar 2020 19:25:58 +0000
(12:25 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 18 Mar 2020 18:03:28 +0000
(18:03 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/conn_idle.c
patch
|
blob
|
history
diff --git
a/source3/smbd/conn_idle.c
b/source3/smbd/conn_idle.c
index cd12e3f12665978eef12014626f725660b98c637..698dc6e3a3282d50ad2a17f7a11ab5d7878c2010 100644
(file)
--- a/
source3/smbd/conn_idle.c
+++ b/
source3/smbd/conn_idle.c
@@
-103,6
+103,11
@@
void conn_force_tdis(
}
tcon = conn->tcon;
+ if (!NT_STATUS_IS_OK(tcon->status)) {
+ /* In the process of already being disconnected. */
+ continue;
+ }
+
do_close = check_fn(conn, private_data);
if (!do_close) {
continue;