dovecot-1.2: Auth workers: Don't assert-crash when process's idl...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 21 22:40:51 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/b64fb26e3b6f
changeset: 8475:b64fb26e3b6f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 21 22:40:48 2008 +0200
description:
Auth workers: Don't assert-crash when process's idle timeout hits.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/auth/auth-worker-server.c |    4 ++--

diffs (21 lines):

diff -r a24661b372a1 -r b64fb26e3b6f src/auth/auth-worker-server.c
--- a/src/auth/auth-worker-server.c	Fri Nov 21 22:40:03 2008 +0200
+++ b/src/auth/auth-worker-server.c	Fri Nov 21 22:40:48 2008 +0200
@@ -51,7 +51,7 @@ static void auth_worker_destroy(struct a
 
 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_work
 
 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");
 }


More information about the dovecot-cvs mailing list