dovecot: Assert crashfix

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 11 17:20:18 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/71af49ba330e
changeset: 7223:71af49ba330e
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 11 17:02:43 2008 +0200
description:
Assert crashfix

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/plugins/fts-squat/squat-trie.c |    4 ++--

diffs (14 lines):

diff -r 3deaf85bb47c -r 71af49ba330e src/plugins/fts-squat/squat-trie.c
--- a/src/plugins/fts-squat/squat-trie.c	Sun Feb 10 22:07:18 2008 +0200
+++ b/src/plugins/fts-squat/squat-trie.c	Mon Feb 11 17:02:43 2008 +0200
@@ -1214,8 +1214,8 @@ squat_uidlist_update_expunged_uids(const
 	if (uid_count == 0) {
 		/* no UIDs left, delete the node's children and mark it
 		   unused */
-		i_assert(!NODE_IS_DYNAMIC_LEAF(node));
-		node_free(trie, node);
+		if (!NODE_IS_DYNAMIC_LEAF(node))
+			node_free(trie, node);
 
 		node->child_count = 0;
 		node->have_sequential = FALSE;


More information about the dovecot-cvs mailing list