1
0
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:
Jeremy Allison 2020-03-10 12:25:58 -07:00
parent 4287ea138e
commit ac800ca6bc

View File

@ -103,6 +103,11 @@ void conn_force_tdis(
} }
tcon = conn->tcon; 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); do_close = check_fn(conn, private_data);
if (!do_close) { if (!do_close) {
continue; continue;