]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Make sure tryagain_r is never randomly set in mailbox_search_next_nonblock()
authorTimo Sirainen <tss@iki.fi>
Thu, 6 Aug 2015 19:36:20 +0000 (22:36 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 6 Aug 2015 19:36:20 +0000 (22:36 +0300)
This infinite looping in some fts plugin failure situations.

src/lib-storage/mail-storage.c

index f00535fad932311c01832ed6df8e58f1fd3fd481..6d5520ad12c30095f4880fb10e0365f5d373ce3b 100644 (file)
@@ -1761,6 +1761,7 @@ bool mailbox_search_next_nonblock(struct mail_search_context *ctx,
        struct mailbox *box = ctx->transaction->box;
 
        *mail_r = NULL;
+       *tryagain_r = FALSE;
 
        if (!box->v.search_next_nonblock(ctx, mail_r, tryagain_r))
                return FALSE;