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

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


details:   http://hg.dovecot.org/dovecot/rev/93b1d16dc720
changeset: 7167:93b1d16dc720
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 19 08:07:11 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 c8f5955a4cf8 -r 93b1d16dc720 src/plugins/zlib/zlib-plugin.c
--- a/src/plugins/zlib/zlib-plugin.c	Wed Jan 16 20:48:06 2008 +0200
+++ b/src/plugins/zlib/zlib-plugin.c	Sat Jan 19 08:07:11 2008 +0200
@@ -132,7 +132,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