]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Fixed assert-crash when reading binary streams.
authorTimo Sirainen <tss@iki.fi>
Mon, 7 Sep 2015 19:06:16 +0000 (22:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 7 Sep 2015 19:06:16 +0000 (22:06 +0300)
src/lib-storage/index/index-mail-binary.c

index f89f6db85ca0d0aab80918c8752c2215d4af66c3..2a6dd91a93e34ee1d1b6976d8dcafa29343209f6 100644 (file)
@@ -345,6 +345,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input)
                        /* go to the next block */
                        if (++block_idx == block_count) {
                                i_assert(i_stream_is_eof(full_input));
+                               ret = -1;
                                break;
                        }
                        cur_block++;