dovecot-2.2: virtual: Crashfix: Don't deinitialize search args t...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 26 01:26:57 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/5c6f49e2d8d9
changeset: 17389:5c6f49e2d8d9
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 26 04:26:01 2014 +0300
description:
virtual: Crashfix: Don't deinitialize search args that haven't been initialized.

diffstat:

 src/plugins/virtual/virtual-storage.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 60d2cfdc3140 -r 5c6f49e2d8d9 src/plugins/virtual/virtual-storage.c
--- a/src/plugins/virtual/virtual-storage.c	Mon May 26 04:05:34 2014 +0300
+++ b/src/plugins/virtual/virtual-storage.c	Mon May 26 04:26:01 2014 +0300
@@ -249,8 +249,11 @@
 		if (bboxes[i]->box == NULL)
 			continue;
 
-		if (bboxes[i]->search_args != NULL)
+		if (bboxes[i]->search_args != NULL &&
+		    bboxes[i]->search_args_initialized) {
 			mail_search_args_deinit(bboxes[i]->search_args);
+			bboxes[i]->search_args_initialized = FALSE;
+		}
 		mailbox_free(&bboxes[i]->box);
 		if (array_is_created(&bboxes[i]->sync_outside_expunges))
 			array_free(&bboxes[i]->sync_outside_expunges);


More information about the dovecot-cvs mailing list