[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.169,1.170

cras at dovecot.org cras at dovecot.org
Mon Nov 29 00:45:41 EET 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv7895

Modified Files:
	mail-index.c 
Log Message:
mail_index_write_base_header() doesn't crash anymore if index mapping is in
memory. Recent changes broke it.



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- mail-index.c	24 Nov 2004 23:05:01 -0000	1.169
+++ mail-index.c	28 Nov 2004 22:45:39 -0000	1.170
@@ -944,8 +944,8 @@
 			return -1;
 		}
 
+		index->map->hdr = *hdr;
 		buffer_write(index->map->hdr_copy_buf, 0, hdr, hdr_size);
-		i_assert(index->hdr == index->map->hdr_copy_buf->data);
 	}
 
 	return 0;



More information about the dovecot-cvs mailing list