s3:smbd: add smbd_server_disconnect_client[_ex]()
authorStefan Metzmacher <metze@samba.org>
Tue, 2 Jun 2020 14:43:43 +0000 (16:43 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jul 2020 15:54:39 +0000 (15:54 +0000)
commit54bd3a46c84b87aa4d391c797c363df954b9b686
treef0e2cec76f217fd3f6d55d151e4c0e4d8bff2e44
parent60d7f059a40457ab9fa01f1bf2eeddc1c3b7d0ab
s3:smbd: add smbd_server_disconnect_client[_ex]()

With multichannel things may not happen only on one connection.
We may need to disconnect all connections of a client, when something
bad happens.

The first users of this will be the lease/oplock break code,
if they are not able allocate memory or something similar
we need to bail out.

Having a special smbXsrv_client based function is better than
calling exit_server*() directly.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source3/smbd/globals.h
source3/smbd/smb2_server.c