]> git.pld-linux.org Git - packages/dovecot.git/blob - fts.patch
- add openssl 3.0.0 support, rel 2
[packages/dovecot.git] / fts.patch
1 commit 7784e710149c6834f2dab5453726f387597c52ad
2 Author: Timo Sirainen <timo.sirainen@open-xchange.com>
3 Date:   Mon Aug 9 13:01:12 2021 +0300
4
5     indexer: Fix crash if client disconnects while it's waiting for command reply
6     
7     This happened for example if IMAP SEARCH triggered long fts indexing and the
8     IMAP client disconnected while waiting for the reply.
9     
10     Broken by f62a25849358e40a08a2c47f5bcaa1613a31d076
11
12 diff --git a/src/indexer/indexer-client.c b/src/indexer/indexer-client.c
13 index c5aac8a3da..ab4710778a 100644
14 --- a/src/indexer/indexer-client.c
15 +++ b/src/indexer/indexer-client.c
16 @@ -139,7 +139,7 @@ void indexer_client_status_callback(int percentage, void *context)
17         struct indexer_client_request *ctx = context;
18  
19         /* we are in deinit already, or the client has disconnected */
20 -       if (ctx->client == NULL)
21 +       if (ctx->client->conn.output == NULL)
22                 return;
23  
24         T_BEGIN {
This page took 0.024233 seconds and 3 git commands to generate.