]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
search: If body search fails due to I/O error, keep the result as "unknown".
authorTimo Sirainen <tss@iki.fi>
Wed, 6 Oct 2010 18:02:20 +0000 (19:02 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 6 Oct 2010 18:02:20 +0000 (19:02 +0100)
Found by Vadim Okun

src/lib-storage/index/index-search.c

index 60e63db1e681993fe176d432ea2dc79d6dee16f8..33b11735c32d6a0fbc0cad11e842889e8408fc69 100644 (file)
@@ -627,7 +627,7 @@ static void search_body(struct mail_search_arg *arg,
                i_assert(ret >= 0 || ctx->input->stream_errno != 0);
        }
 
-       ARG_SET_RESULT(arg, ret > 0);
+       ARG_SET_RESULT(arg, ret);
 }
 
 static int search_arg_match_text(struct mail_search_arg *args,