smbd: add missing DO_PROFILE_INC(disconnect) to smbd_server_connection_terminate_ex()
authorStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2018 14:44:18 +0000 (16:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Jul 2018 15:49:06 +0000 (17:49 +0200)
For multi channel connections we should increment the disconnect count
also if we're not closing the last channel.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_server.c

index 0c1ac32389180709535911527abc9288458c8a51..229f8ab0e856beb86cdf3e5c32a608bb467919ac 100644 (file)
@@ -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;
        }