changeset 14708:2ab4aa784474

imap: Fixed crashes on some FETCH commands
author Timo Sirainen <tss@iki.fi>
date Thu, 05 Jul 2012 10:51:42 +0300
parents dfd3f9135017
children e9e1b97c78c7
files src/lib-imap-storage/imap-msgpart.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-imap-storage/imap-msgpart.c	Wed Jul 04 13:13:56 2012 +0300
+++ b/src/lib-imap-storage/imap-msgpart.c	Thu Jul 05 10:51:42 2012 +0300
@@ -55,6 +55,7 @@
 	msgpart->pool = pool;
 	msgpart->partial_size = (uoff_t)-1;
 	msgpart->fetch_type = fetch_type;
+	msgpart->section_number = "";
 	if (fetch_type == FETCH_HEADER || fetch_type == FETCH_FULL)
 		msgpart->wanted_fields |= MAIL_FETCH_STREAM_HEADER;
 	if (fetch_type == FETCH_BODY || fetch_type == FETCH_FULL)
@@ -190,7 +191,7 @@
 	bool next_digit;
 	int ret;
 
-	pool = pool_alloconly_create("imap msgpart", 512);
+	pool = pool_alloconly_create("imap msgpart", 1024);
 	msgpart = *msgpart_r = p_new(pool, struct imap_msgpart, 1);
 	msgpart->pool = pool;
 	msgpart->partial_size = (uoff_t)-1;