# HG changeset patch # User Timo Sirainen # Date 1274983619 -3600 # Node ID 47f186130a4dd35991eed88c832b6523dfb2de53 # Parent 75b8bde60e659462e793e8e957f3c95d83b5703d lazy-expunge: Don't crash if lazy_expunge setting isn't enabled for user. diff -r 75b8bde60e65 -r 47f186130a4d src/plugins/lazy-expunge/lazy-expunge-plugin.c --- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c Thu May 27 18:26:23 2010 +0100 +++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c Thu May 27 19:06:59 2010 +0100 @@ -493,6 +493,9 @@ 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, " ");