dovecot-2.0: lazy-expunge: Don't crash if lazy_expunge setting i...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 27 21:14:45 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/47f186130a4d
changeset: 11392:47f186130a4d
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 27 19:06:59 2010 +0100
description:
lazy-expunge: Don't crash if lazy_expunge setting isn't enabled for user.

diffstat:

 src/plugins/lazy-expunge/lazy-expunge-plugin.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

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, " ");


More information about the dovecot-cvs mailing list