[dovecot-cvs] dovecot/src/lib-imap imap-message-cache.c,1.33,1.34
cras at procontrol.fi
cras at procontrol.fi
Sun Jan 12 01:42:24 EET 2003
Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv25616
Modified Files:
imap-message-cache.c
Log Message:
If we couldn't get message_part for any reason, don't crash.
Index: imap-message-cache.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-message-cache.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- imap-message-cache.c 11 Jan 2003 19:55:56 -0000 1.33
+++ imap-message-cache.c 11 Jan 2003 23:42:22 -0000 1.34
@@ -314,9 +314,8 @@
failed = msg->part == NULL;
}
- if ((fields & IMAP_CACHE_MESSAGE_BODY_SIZE) && msg->body_size == NULL) {
- i_assert(msg->part != NULL);
-
+ if ((fields & IMAP_CACHE_MESSAGE_BODY_SIZE) &&
+ msg->body_size == NULL && msg->part != NULL) {
msg->body_size = p_new(msg->pool, struct message_size, 1);
if (msg->hdr_size == NULL) {
msg->hdr_size = p_new(msg->pool,
More information about the dovecot-cvs
mailing list