From: Timo Sirainen Date: Sun, 17 May 2009 21:11:15 +0000 (-0400) Subject: Message threading assert-crashfix. X-Git-Tag: 2.0.alpha1~745 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=838f57f389d5f4e97d9313ff86625bf1ee3517c6;p=thirdparty%2Fdovecot%2Fcore.git Message threading assert-crashfix. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-thread-links.c b/src/lib-storage/index/index-thread-links.c index 380773fb3e..d73d32e652 100644 --- a/src/lib-storage/index/index-thread-links.c +++ b/src/lib-storage/index/index-thread-links.c @@ -205,6 +205,9 @@ bool mail_thread_remove(struct mail_thread_cache *cache, if (msgid_map->uid > cache->last_uid) { /* this message was never added to the cache, skip */ + while (msgid_map[count].uid == msgid_map->uid) + count++; + *msgid_map_idx += count; return TRUE; }