From: Stefan Metzmacher Date: Wed, 25 Jul 2018 14:44:18 +0000 (+0200) Subject: smbd: add missing DO_PROFILE_INC(disconnect) to smbd_server_connection_terminate_ex() X-Git-Tag: ldb-1.5.0~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e900d60822d2050fa52b8c4dddf67c0d134f662;p=thirdparty%2Fsamba.git smbd: add missing DO_PROFILE_INC(disconnect) to smbd_server_connection_terminate_ex() For multi channel connections we should increment the disconnect count also if we're not closing the last channel. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 0c1ac323891..229f8ab0e85 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -1097,6 +1097,7 @@ void smbd_server_connection_terminate_ex(struct smbXsrv_connection *xconn, /* TODO: cancel pending requests */ DLIST_REMOVE(client->connections, xconn); TALLOC_FREE(xconn); + DO_PROFILE_INC(disconnect); return; }