]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Auth workers: Don't assert-crash when process's idle timeout hits.
authorTimo Sirainen <tss@iki.fi>
Fri, 21 Nov 2008 20:40:48 +0000 (22:40 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 21 Nov 2008 20:40:48 +0000 (22:40 +0200)
--HG--
branch : HEAD

src/auth/auth-worker-server.c

index 2c0e73c4f5b8f15234983af5a2253dff7e3e1a69..b02004e2eb49f66019acd9a90d75b2531696f7c9 100644 (file)
@@ -51,7 +51,7 @@ static void auth_worker_destroy(struct auth_worker_connection *conn,
 
 static void auth_worker_idle_timeout(struct auth_worker_connection *conn)
 {
-       i_assert(array_count(&conn->requests) == 0);
+       i_assert(conn->request_count == 0);
 
        if (idle_count > 1)
                auth_worker_destroy(conn, NULL);
@@ -278,7 +278,7 @@ auth_worker_request_get(struct auth_worker_connection *conn)
 
 static void auth_worker_call_timeout(struct auth_worker_connection *conn)
 {
-       i_assert(array_count(&conn->requests) > 0);
+       i_assert(conn->request_count > 0);
 
        auth_worker_destroy(conn, "Lookup timed out");
 }