dovecot-1.2: pop3: Don't crash at startup if mailbox is empty.

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 11 06:21:12 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/22d70947597c
changeset: 8745:22d70947597c
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Feb 10 23:21:02 2009 -0500
description:
pop3: Don't crash at startup if mailbox is empty.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/pop3/client.c |    2 +-

diffs (12 lines):

diff -r bb7cb8a724bd -r 22d70947597c src/pop3/client.c
--- a/src/pop3/client.c	Tue Feb 10 19:28:06 2009 -0500
+++ b/src/pop3/client.c	Tue Feb 10 23:21:02 2009 -0500
@@ -215,7 +215,7 @@ struct client *client_create(int fd_in, 
 		return NULL;
 	}
 
-	if (!no_flag_updates)
+	if (!no_flag_updates && client->messages_count > 0)
 		client->seen_bitmask = i_malloc(MSGS_BITMASK_SIZE(client));
 
 	i_assert(my_client == NULL);


More information about the dovecot-cvs mailing list