dovecot-2.0-sslstream: lib-auth: When connection dies, reset str...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:55:35 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/ae639ce8cea6
changeset: 10170:ae639ce8cea6
user: Timo Sirainen <tss at iki.fi>
date: Fri Oct 23 16:18:53 2009 -0400
description:
lib-auth: When connection dies, reset structure variables properly.
diffstat:
1 file changed, 8 insertions(+)
src/lib-auth/auth-server-connection.c | 8 ++++++++
diffs (18 lines):
diff -r 79f1c3ae4a98 -r ae639ce8cea6 src/lib-auth/auth-server-connection.c
--- a/src/lib-auth/auth-server-connection.c Fri Oct 23 13:52:14 2009 -0400
+++ b/src/lib-auth/auth-server-connection.c Fri Oct 23 16:18:53 2009 -0400
@@ -313,6 +313,14 @@ auth_server_connection_remove_requests(s
static void auth_server_connection_close(struct auth_server_connection *conn)
{
+ conn->handshake_received = FALSE;
+ conn->version_received = FALSE;
+ conn->has_plain_mech = FALSE;
+ conn->server_pid = 0;
+ conn->connect_uid = 0;
+ conn->cookie = NULL;
+ array_clear(&conn->available_auth_mechs);
+
if (conn->to != NULL)
timeout_remove(&conn->to);
if (conn->io != NULL)
More information about the dovecot-cvs
mailing list