summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--message.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/message.c b/message.c
index c205709..ac30b11 100644
--- a/message.c
+++ b/message.c
@@ -835,8 +835,9 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
// Index of client fd in clients array for use later
int clientindex = arrindex(clients, sourcefd);
if (clientindex < 0) {
- debugprint(DEBUG_CRIT, "processclientmessage(): error: arrindex() returned '%d', exiting!\n", clientindex);
- exit(1);
+ // Client not found (perhaps disconnected after failing to authenticate following a previous ircmessage in the same rawstring)
+ debugprint(DEBUG_CRIT, "processclientmessage(): error: arrindex() returned '%d', returning 1!\n", clientindex);
+ return 1;
}
// PASS received? User is trying to log in, check their password.