]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lazy-expunge: Don't crash if lazy_expunge setting isn't enabled for user.
authorTimo Sirainen <tss@iki.fi>
Thu, 27 May 2010 18:06:59 +0000 (19:06 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 27 May 2010 18:06:59 +0000 (19:06 +0100)
--HG--
branch : HEAD

src/plugins/lazy-expunge/lazy-expunge-plugin.c

index 4cee6cb6139e39807e222e2ad20f54a522f5770e..784def5d1d7918b4585ad7f0a14c7616143b8369 100644 (file)
@@ -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, " ");