dovecot-2.0: login: Crashfix when client disconnects before auth...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 8 16:56:19 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/af71d71e4b88
changeset: 12085:af71d71e4b88
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 08 14:47:28 2010 +0100
description:
login: Crashfix when client disconnects before auth process has started.
diffstat:
src/login-common/client-common-auth.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 902f008f17cf -r af71d71e4b88 src/login-common/client-common-auth.c
--- a/src/login-common/client-common-auth.c Tue Sep 07 19:50:48 2010 +0100
+++ b/src/login-common/client-common-auth.c Wed Sep 08 14:47:28 2010 +0100
@@ -525,9 +525,11 @@
void clients_notify_auth_connected(void)
{
- struct client *client;
+ struct client *client, *next;
- for (client = clients; client != NULL; client = client->next) {
+ for (client = clients; client != NULL; client = next) {
+ next = client->next;
+
if (client->to_auth_waiting != NULL)
timeout_remove(&client->to_auth_waiting);
if (!client->greeting_sent)
More information about the dovecot-cvs
mailing list