dovecot-2.2: auth: Fix to earlier commit: Don't try to resume al...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 13 16:14:36 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/e54bd2e1a767
changeset: 17946:e54bd2e1a767
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 13 09:13:53 2014 -0700
description:
auth: Fix to earlier commit: Don't try to resume already finished user iteration.

diffstat:

 src/auth/auth-worker-server.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 931ab6f3357b -r e54bd2e1a767 src/auth/auth-worker-server.c
--- a/src/auth/auth-worker-server.c	Mon Oct 13 08:50:44 2014 -0700
+++ b/src/auth/auth-worker-server.c	Mon Oct 13 09:13:53 2014 -0700
@@ -458,6 +458,11 @@
 
 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) {


More information about the dovecot-cvs mailing list