dovecot-2.2: auth: Fixed error handling for proxy host dns_lookup()

dovecot at dovecot.org dovecot at dovecot.org
Thu May 30 22:26:18 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/b8a175d93ef6
changeset: 16428:b8a175d93ef6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 30 22:26:14 2013 +0300
description:
auth: Fixed error handling for proxy host dns_lookup()

diffstat:

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

diffs (17 lines):

diff -r e90e9a7c4ff8 -r b8a175d93ef6 src/auth/auth-worker-server.c
--- a/src/auth/auth-worker-server.c	Thu May 30 21:45:13 2013 +0300
+++ b/src/auth/auth-worker-server.c	Thu May 30 22:26:14 2013 +0300
@@ -393,6 +393,13 @@
 	struct auth_worker_connection *conn;
 	struct auth_worker_request *request;
 
+	if (worker_request_queue == NULL) {
+		/* we're deinitializing */
+		callback(t_strdup_printf("FAIL\t%d",
+			PASSDB_RESULT_INTERNAL_FAILURE), context);
+		return NULL;
+	}
+
 	request = p_new(pool, struct auth_worker_request, 1);
 	request->created = ioloop_time;
 	request->data = p_strdup(pool, data);


More information about the dovecot-cvs mailing list