dovecot-1.0: Assert-crashfix when using a specific plugin combin...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Mar 6 02:08:44 EET 2008
details: http://hg.dovecot.org/dovecot-1.0/rev/e07e8f651ec8
changeset: 5533:e07e8f651ec8
user: Timo Sirainen <tss at iki.fi>
date: Thu Mar 06 02:08:41 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 55b28336c4c4 -r e07e8f651ec8 src/plugins/zlib/zlib-plugin.c
--- a/src/plugins/zlib/zlib-plugin.c Wed Mar 05 09:13:01 2008 +0200
+++ b/src/plugins/zlib/zlib-plugin.c Thu Mar 06 02:08:41 2008 +0200
@@ -61,8 +61,7 @@ zlib_maildir_get_stream(struct mail *_ma
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