[dovecot-cvs] dovecot-1.0: Header lookup from cache could have returned garbag...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 14 01:43:36 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/114882d75665
changeset: 5309:114882d75665
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 14 01:43:33 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 7959ec38de98 -r 114882d75665 src/lib-index/mail-cache-lookup.c
--- a/src/lib-index/mail-cache-lookup.c Wed Jun 13 14:27:21 2007 +0300
+++ b/src/lib-index/mail-cache-lookup.c Thu Jun 14 01:43:33 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