dovecot: Fixed assert-crash when trying to open compressed maild...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 11 05:49:37 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/ca223be145b5
changeset: 7146:ca223be145b5
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 11 05:49:34 2008 +0200
description:
Fixed assert-crash when trying to open compressed maildir files.

diffstat:

1 file changed, 3 insertions(+)
src/plugins/zlib/zlib-plugin.c |    3 +++

diffs (14 lines):

diff -r 5187649faa52 -r ca223be145b5 src/plugins/zlib/zlib-plugin.c
--- a/src/plugins/zlib/zlib-plugin.c	Fri Jan 11 05:27:46 2008 +0200
+++ b/src/plugins/zlib/zlib-plugin.c	Fri Jan 11 05:49:34 2008 +0200
@@ -57,7 +57,10 @@ static int zlib_maildir_get_stream(struc
 		fd = dup(i_stream_get_fd(imail->data.stream));
 		if (fd == -1)
 			i_error("zlib plugin: dup() failed: %m");
+
+		imail->data.destroying_stream = TRUE;
 		i_stream_unref(&imail->data.stream);
+		i_assert(!imail->data.destroying_stream);
 
 		if (fd == -1)
 			return -1;


More information about the dovecot-cvs mailing list