[dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c,1.3,1.4

cras at procontrol.fi cras at procontrol.fi
Sun Aug 24 09:57:45 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv32074/src/lib-storage/index

Modified Files:
	index-mail-headers.c 
Log Message:
Assert -> mark cache corrupted



Index: index-mail-headers.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- index-mail-headers.c	21 Aug 2003 00:04:11 -0000	1.3
+++ index-mail-headers.c	24 Aug 2003 05:57:43 -0000	1.4
@@ -407,7 +407,12 @@
 
 	idx_headers = mail_cache_get_header_fields(mail->ibox->index->cache,
 						   idx);
-	i_assert(idx_headers != NULL);
+	if (idx_headers == NULL) {
+		mail_cache_set_corrupted(mail->ibox->index->cache,
+			"Headers %d names not found", idx);
+		t_pop();
+		return FALSE;
+	}
 
 	index_mail_parse_header_init(mail, idx_headers);
 	message_parse_header(NULL, istream, NULL,



More information about the dovecot-cvs mailing list