]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fix to earlier commit: Don't try to resume already finished user iteration.
authorTimo Sirainen <tss@iki.fi>
Mon, 13 Oct 2014 16:13:53 +0000 (09:13 -0700)
committerTimo Sirainen <tss@iki.fi>
Mon, 13 Oct 2014 16:13:53 +0000 (09:13 -0700)
src/auth/auth-worker-server.c

index c7512bf0864b29cd7048c418d98000e9d5b6fa84..6b91ae86f034c6d89871d3d49a4165ddb579813b 100644 (file)
@@ -458,6 +458,11 @@ auth_worker_call(pool_t pool, const char *username, const char *data,
 
 void auth_worker_server_resume_input(struct auth_worker_connection *conn)
 {
+       if (conn->request == NULL) {
+               /* request was just finished, don't try to resume it */
+               return;
+       }
+
        if (conn->io == NULL)
                conn->io = io_add(conn->fd, IO_READ, worker_input, conn);
        if (!conn->timeout_pending_resume) {