dovecot-2.2: indexer: Fixed crash at deinit if there were still ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 29 08:46:52 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/5945ba000a45
changeset: 18888:5945ba000a45
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 29 11:44:00 2015 +0300
description:
indexer: Fixed crash at deinit if there were still queued requests.
diffstat:
src/indexer/indexer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 459cced0a15d -r 5945ba000a45 src/indexer/indexer.c
--- 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);
More information about the dovecot-cvs
mailing list