From 0e900d60822d2050fa52b8c4dddf67c0d134f662 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 25 Jul 2018 16:44:18 +0200 Subject: [PATCH] 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 --- source3/smbd/smb2_server.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.11.4.GIT