diff options
-rw-r--r-- | message.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |