dovecot-2.2: lib-index: Crashfix for MAIL_INDEX_OPEN_FLAG_SAVEON...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 29 17:55:54 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/99aec8d4d6c6
changeset: 15318:99aec8d4d6c6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 18 06:45:39 2012 +0300
description:
lib-index: Crashfix for MAIL_INDEX_OPEN_FLAG_SAVEONLY change.

diffstat:

 src/lib-index/mail-cache.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 92364817f4ba -r 99aec8d4d6c6 src/lib-index/mail-cache.c
--- a/src/lib-index/mail-cache.c	Thu Oct 18 06:21:25 2012 +0300
+++ b/src/lib-index/mail-cache.c	Thu Oct 18 06:45:39 2012 +0300
@@ -307,7 +307,7 @@
 	} else if (cache->read_offset <= offset &&
 		   cache->read_offset + cache->read_buf->used >= offset+size) {
 		/* already mapped */
-		*data_r = CONST_PTR_OFFSET(cache->mmap_base,
+		*data_r = CONST_PTR_OFFSET(cache->read_buf->data,
 					   offset - cache->read_offset);
 		return mail_cache_map_finish(cache, offset, size, *data_r, TRUE);
 	} else {


More information about the dovecot-cvs mailing list