Mercurial > dovecot > original-hg > dovecot-2.1
changeset 14973:99952f2b56ae
auth: Fixed error handling for proxy host dns_lookup()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 30 May 2013 22:25:57 +0300 |
parents | d16581e2d7cf |
children | 7961f4f3b341 |
files | src/auth/auth-worker-server.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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));