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

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


details:   http://hg.dovecot.org/dovecot-2.1/rev/99952f2b56ae
changeset: 14973:99952f2b56ae
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 30 22:25:57 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 d16581e2d7cf -r 99952f2b56ae src/auth/auth-worker-server.c
--- a/src/auth/auth-worker-server.c	Wed May 29 12:44:15 2013 +0300
+++ b/src/auth/auth-worker-server.c	Thu May 30 22:25:57 2013 +0300
@@ -392,6 +392,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_str = p_strdup(pool, auth_stream_reply_export(data));


More information about the dovecot-cvs mailing list