]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Auth worker: Make sure we don't abort a lookup too early.
authorTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2008 22:07:48 +0000 (01:07 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2008 22:07:48 +0000 (01:07 +0300)
--HG--
branch : HEAD

src/auth/auth-worker-server.c

index dd25fba61106ae863735f3ac8338571247a68944..3b61275b74db5375ef2407d0ea49b0e7e84f8eca 100644 (file)
@@ -239,7 +239,7 @@ static void worker_input(struct auth_worker_connection *conn)
                        auth_worker_handle_request(conn, request, line + 1);
        }
 
-       if (conn->requests_left == 0) {
+       if (conn->requests_left == 0 && array_count(&conn->requests) == 0) {
                auth_worker_destroy(conn, "Max requests limit");
                if (idle_count == 0)
                        auth_worker_create();