dovecot-2.2: pop3: Fixed assert-crash with some settings when th...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 6 12:34:30 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/4493e070c47e
changeset: 17325:4493e070c47e
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 06 15:34:00 2014 +0300
description:
pop3: Fixed assert-crash with some settings when there are 0 mails.

diffstat:

 src/pop3/pop3-commands.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 16212e6d4fd4 -r 4493e070c47e src/pop3/pop3-commands.c
--- a/src/pop3/pop3-commands.c	Mon May 05 18:37:16 2014 +0300
+++ b/src/pop3/pop3-commands.c	Tue May 06 15:34:00 2014 +0300
@@ -838,7 +838,8 @@
 	struct mail_search_args *search_args;
 	enum mail_fetch_field wanted_fields;
 
-	if (client->message_uidls_save && client->message_uidls == NULL)
+	if (client->message_uidls_save && client->message_uidls == NULL &&
+	    client->messages_count > 0)
 		client_uidls_save(client);
 
 	ctx = i_new(struct cmd_uidl_context, 1);


More information about the dovecot-cvs mailing list