Mercurial > dovecot > core-2.2
changeset 21467:85fc39ade4e3
lib-storage: Add assert to make sure header parsing isn't recursed
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 30 Jan 2017 21:28:20 +0200 |
parents | 10103d3a4ad4 |
children | 8506c5d8b5cc |
files | src/lib-storage/index/index-mail-headers.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail-headers.c Thu Feb 02 01:36:50 2017 +0100 +++ b/src/lib-storage/index/index-mail-headers.c Mon Jan 30 21:28:20 2017 +0200 @@ -194,6 +194,8 @@ const uint8_t *match; unsigned int i, field_idx, match_count; + i_assert(!mail->data.header_parser_initialized); + mail->header_seq = data->seq; if (mail->header_data == NULL) { mail->header_data = buffer_create_dynamic(default_pool, 4096);