dovecot-2.0: doveadm dump index: Another crashfix.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Feb 9 18:08:18 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/c7e827ab156e
changeset: 10680:c7e827ab156e
user: Timo Sirainen <tss at iki.fi>
date: Tue Feb 09 18:08:13 2010 +0200
description:
doveadm dump index: Another crashfix.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/doveadm/doveadm-dump-index.c | 3 ++-
diffs (13 lines):
diff -r 3712e2dcc856 -r c7e827ab156e src/doveadm/doveadm-dump-index.c
--- a/src/doveadm/doveadm-dump-index.c Tue Feb 09 18:05:41 2010 +0200
+++ b/src/doveadm/doveadm-dump-index.c Tue Feb 09 18:08:13 2010 +0200
@@ -562,7 +562,8 @@ static bool test_dump_index(const char *
ret = mail_index_open(index, MAIL_INDEX_OPEN_FLAG_READONLY,
FILE_LOCK_METHOD_FCNTL) > 0;
- mail_index_close(index);
+ if (ret > 0)
+ mail_index_close(index);
mail_index_free(&index);
return ret;
}
More information about the dovecot-cvs
mailing list