]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Fixed assert-crash with some settings when there are 0 mails.
authorTimo Sirainen <tss@iki.fi>
Tue, 6 May 2014 12:34:00 +0000 (15:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 6 May 2014 12:34:00 +0000 (15:34 +0300)
src/pop3/pop3-commands.c

index b775428e0c2cd3269fffd266cb34c9c1b54378ed..5bc60ef08904f5599923c0c267c6cc875e3569b4 100644 (file)
@@ -838,7 +838,8 @@ cmd_uidl_init(struct client *client, uint32_t seq)
        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);