# HG changeset patch # User Timo Sirainen # Date 1242610507 14400 # Node ID b52f165fccd8a9d144da6e96518a121f9f932e61 # Parent 843f81083d0faefc19c9758477ae44f5ab0bd32e 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. diff -r 843f81083d0f -r b52f165fccd8 src/plugins/zlib/istream-zlib.c --- 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