[dovecot-cvs] dovecot: Header lookup from cache could have returned garbage af...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 14 01:46:17 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/ae289a38b59a
changeset: 5730:ae289a38b59a
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 14 01:43:50 2007 +0300
description:
Header lookup from cache could have returned garbage after headers in very
rare conditions.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-cache-lookup.c | 2 +-
diffs (12 lines):
diff -r c3e32c3fb2bf -r ae289a38b59a src/lib-index/mail-cache-lookup.c
--- a/src/lib-index/mail-cache-lookup.c Wed Jun 13 23:28:23 2007 +0300
+++ b/src/lib-index/mail-cache-lookup.c Thu Jun 14 01:43:50 2007 +0300
@@ -503,7 +503,7 @@ int mail_cache_lookup_headers(struct mai
}
hdr_size = (size_t)(p - start);
data[i].data->offset += hdr_size;
- data[i].data->data_size += hdr_size;
+ data[i].data->data_size -= hdr_size;
buffer_append(dest, start, hdr_size);
}
More information about the dovecot-cvs
mailing list