dovecot-1.0: Maildir: Don't crash if mailbox couldn't be opened....

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 19 08:07:19 EET 2008


details:   http://hg.dovecot.org/dovecot-1.0/rev/141615ec9411
changeset: 5513:141615ec9411
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 19 08:05:34 2008 +0200
description:
Maildir: Don't crash if mailbox couldn't be opened. Patch by Richard Platel.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/zlib/zlib-plugin.c |    2 +-

diffs (12 lines):

diff -r 6ca86ec5a992 -r 141615ec9411 src/plugins/zlib/zlib-plugin.c
--- a/src/plugins/zlib/zlib-plugin.c	Wed Jan 16 18:41:06 2008 +0200
+++ b/src/plugins/zlib/zlib-plugin.c	Sat Jan 19 08:05:34 2008 +0200
@@ -142,7 +142,7 @@ zlib_mailbox_open(struct mail_storage *s
 	if (zlib_input != NULL)
 		i_stream_unref(&zlib_input);
 
-	if (strcmp(storage->name, "maildir") == 0) 
+	if (box != NULL && strcmp(storage->name, "maildir") == 0) 
 		zlib_maildir_open_init(box);
 	return box;
 }


More information about the dovecot-cvs mailing list