From: Timo Sirainen Date: Thu, 27 May 2010 18:06:59 +0000 (+0100) Subject: lazy-expunge: Don't crash if lazy_expunge setting isn't enabled for user. X-Git-Tag: 2.0.beta6~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cae63fcd9206d457c71a5ce3bdb1f5befff37342;p=thirdparty%2Fdovecot%2Fcore.git lazy-expunge: Don't crash if lazy_expunge setting isn't enabled for user. --HG-- branch : HEAD --- diff --git a/src/plugins/lazy-expunge/lazy-expunge-plugin.c b/src/plugins/lazy-expunge/lazy-expunge-plugin.c index 4cee6cb613..784def5d1d 100644 --- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c +++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c @@ -493,6 +493,9 @@ static void lazy_expunge_mail_namespace_storage_added(struct mail_namespace *ns) const char *const *p; unsigned int i; + if (luser == NULL) + return; + /* if this is one of our internal namespaces, mark it as such before quota plugin sees it */ p = t_strsplit_spaces(luser->env, " ");