From: Timo Sirainen Date: Wed, 8 Sep 2010 13:47:28 +0000 (+0100) Subject: login: Crashfix when client disconnects before auth process has started. X-Git-Tag: 2.0.2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80e461e945dd4d5b0d08535413176cf1756e8523;p=thirdparty%2Fdovecot%2Fcore.git login: Crashfix when client disconnects before auth process has started. --- diff --git a/src/login-common/client-common-auth.c b/src/login-common/client-common-auth.c index 258ac782ba..bbc513ad53 100644 --- a/src/login-common/client-common-auth.c +++ b/src/login-common/client-common-auth.c @@ -525,9 +525,11 @@ bool client_check_plaintext_auth(struct client *client, bool pass_sent) void clients_notify_auth_connected(void) { - struct client *client; + struct client *client, *next; + + for (client = clients; client != NULL; client = next) { + next = client->next; - for (client = clients; client != NULL; client = client->next) { if (client->to_auth_waiting != NULL) timeout_remove(&client->to_auth_waiting); if (!client->greeting_sent)