summaryrefslogtreecommitdiff
path: root/functions.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2025-08-08 22:15:43 +0100
committerLuke Bratch <luke@bratch.co.uk>2025-08-08 22:15:43 +0100
commitcdc21500174966ecf2ca1eedb73eb5aa4d2f344c (patch)
tree1e5a0ffc13ed4af4b229c6361b9cdfead5e4e769 /functions.c
parent53d4843b8d64b4fb928c3790956ccefb4d9e0756 (diff)
Disconnect zombie clients after a while (if they haven't authenticated after AUTHTIMEOUT seconds).
Diffstat (limited to 'functions.c')
-rw-r--r--functions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.c b/functions.c
index c3e9c94..6eddc35 100644
--- a/functions.c
+++ b/functions.c
@@ -663,6 +663,7 @@ int disconnectclient(int fd, struct client *clients, struct ircdstate *ircdstate
clients[i].pendingcap = 0;
clients[i].clientcode[0] = '\0';
clients[i].remoteip[0] = '\0';
+ clients[i].connecttime = 0;
if (settings->clienttls) {
// Finish up with OpenSSL if using client TLS
SSL_free(clients[i].ssl);