mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: smbd: Don't allow force disconnect of a connection already being disconnected.
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>
This commit is contained in:
parent
4287ea138e
commit
ac800ca6bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user