changeset 9321:4c4b95def1fa 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 9bdd43acd083
children ce612bdafc84
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:03:39 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