Mercurial > dovecot > core-2.2
changeset 18888:5945ba000a45
indexer: Fixed crash at deinit if there were still queued requests.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 29 Jun 2015 11:44:00 +0300 |
parents | 459cced0a15d |
children | 1458276c0a07 |
files | src/indexer/indexer.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/indexer/indexer.c Wed Jun 24 07:54:35 2015 +0200 +++ b/src/indexer/indexer.c Mon Jun 29 11:44:00 2015 +0300 @@ -59,6 +59,11 @@ struct worker_connection *conn; struct indexer_request *request; + if (worker_pool == NULL) { + /* deinitializing */ + return; + } + while ((request = indexer_queue_request_peek(queue)) != NULL) { conn = worker_pool_find_username_connection(worker_pool, request->username);