dovecot-2.2: lib-fts: Don't crash if fts_icu_*() are used after ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 12 10:04:41 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/a01dc6ef392d
changeset: 18844:a01dc6ef392d
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 12 13:02:08 2015 +0300
description:
lib-fts: Don't crash if fts_icu_*() are used after fts_icu_deinit()
diffstat:
src/lib-fts/fts-icu.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 03b3b97b84aa -r a01dc6ef392d src/lib-fts/fts-icu.c
--- a/src/lib-fts/fts-icu.c Thu Jun 11 19:21:16 2015 +0300
+++ b/src/lib-fts/fts-icu.c Fri Jun 12 13:02:08 2015 +0300
@@ -158,7 +158,9 @@
void fts_icu_deinit(void)
{
- if (icu_csm != NULL)
+ if (icu_csm != NULL) {
ucasemap_close(icu_csm);
+ icu_csm = NULL;
+ }
u_cleanup();
}
More information about the dovecot-cvs
mailing list