From f8ef1c5c96598f2d3520568fb14a18010c5e2488 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 12 Feb 2003 10:02:43 +0200 Subject: [PATCH] handshake counter was decreased too often and could have caused hangs --HG-- branch : HEAD --- src/login-common/auth-connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/login-common/auth-connection.c b/src/login-common/auth-connection.c index ffe6f41ace..3cb423d920 100644 --- a/src/login-common/auth-connection.c +++ b/src/login-common/auth-connection.c @@ -119,7 +119,8 @@ static void auth_connection_destroy(struct auth_connection *conn) } } - auth_waiting_handshake_count--; + if (!conn->handshake_received) + auth_waiting_handshake_count--; if (close(conn->fd) < 0) i_error("close(auth) failed: %m"); -- 2.47.3