changeset 11392:47f186130a4d HEAD

lazy-expunge: Don't crash if lazy_expunge setting isn't enabled for user.
author Timo Sirainen <tss@iki.fi>
date Thu, 27 May 2010 19:06:59 +0100
parents 75b8bde60e65
children f2ece87f9fea
files src/plugins/lazy-expunge/lazy-expunge-plugin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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, " ");