Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7167:93b1d16dc720 HEAD
Maildir: Don't crash if mailbox couldn't be opened. Patch by Richard Platel.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 19 Jan 2008 08:07:11 +0200 |
parents | c8f5955a4cf8 |
children | e33119f2dfdc |
files | src/plugins/zlib/zlib-plugin.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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; }