dovecot-1.1: Assert-crashfix when using a specific plugin combin...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Mar 6 02:08:51 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/25551453b13c
changeset: 7356:25551453b13c
user: Timo Sirainen <tss at iki.fi>
date: Thu Mar 06 02:08:44 2008 +0200
description:
Assert-crashfix when using a specific plugin combination.
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
src/plugins/zlib/zlib-plugin.c | 3 +--
diffs (13 lines):
diff -r 5193f5c6ab5d -r 25551453b13c src/plugins/zlib/zlib-plugin.c
--- a/src/plugins/zlib/zlib-plugin.c Wed Mar 05 03:53:39 2008 +0200
+++ b/src/plugins/zlib/zlib-plugin.c Thu Mar 06 02:08:44 2008 +0200
@@ -50,8 +50,7 @@ static int zlib_maildir_get_stream(struc
i_assert(input == imail->data.stream);
fname = maildir_uidlist_lookup(mbox->uidlist, _mail->uid, &flags);
- i_assert(fname != NULL);
- p = strstr(fname, ":2,");
+ p = fname == NULL ? NULL : strstr(fname, ":2,");
if (p != NULL && strchr(p + 3, 'Z') != NULL) {
/* has a Z flag - it's compressed */
fd = dup(i_stream_get_fd(imail->data.stream));
More information about the dovecot-cvs
mailing list