dovecot-2.0: lazy-expunge: Don't crash when using shared users.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 5 20:43:25 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/641e86843234
changeset: 11949:641e86843234
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 05 18:43:23 2010 +0100
description:
lazy-expunge: Don't crash when using shared users.
diffstat:
src/plugins/lazy-expunge/lazy-expunge-plugin.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r ebb4362b6d0d -r 641e86843234 src/plugins/lazy-expunge/lazy-expunge-plugin.c
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c Thu Aug 05 17:33:12 2010 +0100
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c Thu Aug 05 18:43:23 2010 +0100
@@ -558,8 +558,10 @@
struct lazy_expunge_mail_user *luser = LAZY_EXPUNGE_USER_CONTEXT(user);
unsigned int i;
- for (i = 0; i < LAZY_NAMESPACE_COUNT; i++)
- mail_namespace_unref(&luser->lazy_ns[i]);
+ for (i = 0; i < LAZY_NAMESPACE_COUNT; i++) {
+ if (luser->lazy_ns[i] != NULL)
+ mail_namespace_unref(&luser->lazy_ns[i]);
+ }
luser->module_ctx.super.deinit(user);
}
More information about the dovecot-cvs
mailing list