]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
handshake counter was decreased too often and could have caused hangs
authorTimo Sirainen <tss@iki.fi>
Wed, 12 Feb 2003 08:02:43 +0000 (10:02 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 12 Feb 2003 08:02:43 +0000 (10:02 +0200)
--HG--
branch : HEAD

src/login-common/auth-connection.c

index ffe6f41ace9f1fb550fe1a19f25ee6b96c3d70ea..3cb423d9206d7c83f6143b9a59add7950d604cee 100644 (file)
@@ -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");