changeset 9053:b52f165fccd8 HEAD

zlib: Don't expose file descriptor. Others can't do anything with it anyway. Fixes o_stream_send_istream(zlib_istream), which was trying to sendfile() the compressed data.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 May 2009 21:35:07 -0400
parents 843f81083d0f
children 89de2b91a655
files src/plugins/zlib/istream-zlib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/zlib/istream-zlib.c	Sun May 17 21:02:38 2009 -0400
+++ b/src/plugins/zlib/istream-zlib.c	Sun May 17 21:35:07 2009 -0400
@@ -246,6 +246,6 @@
 		zstream->istream.istream.seekable = TRUE;
 	}
 
-	return i_stream_create(&zstream->istream, NULL, fd);
+	return i_stream_create(&zstream->istream, NULL, -1);
 }
 #endif