dovecot-2.2: pop3: Fixed crash at deinit

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 17 16:37:57 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/1352949265cc
changeset: 16528:1352949265cc
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 17 16:37:46 2013 +0300
description:
pop3: Fixed crash at deinit

diffstat:

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

diffs (13 lines):

diff -r 014003da870e -r 1352949265cc src/pop3/pop3-client.c
--- a/src/pop3/pop3-client.c	Mon Jun 17 14:39:59 2013 +0300
+++ b/src/pop3/pop3-client.c	Mon Jun 17 16:37:46 2013 +0300
@@ -593,7 +593,8 @@
 		   message sizes. */
 		(void)mailbox_transaction_commit(&client->trans);
 	}
-	array_free(&client->all_seqs);
+	if (array_is_created(&client->all_seqs))
+		array_free(&client->all_seqs);
 	if (client->deleted_kw != NULL)
 		mailbox_keywords_unref(&client->deleted_kw);
 	if (client->mailbox != NULL)


More information about the dovecot-cvs mailing list