From: Timo Sirainen Date: Mon, 18 May 2009 01:35:07 +0000 (-0400) Subject: zlib: Don't expose file descriptor. Others can't do anything with it anyway. X-Git-Tag: 2.0.alpha1~731 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74be0174580cd2c6ea87e083912a211aa6aef65d;p=thirdparty%2Fdovecot%2Fcore.git 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. --HG-- branch : HEAD --- diff --git a/src/plugins/zlib/istream-zlib.c b/src/plugins/zlib/istream-zlib.c index d738cc886d..52193fe989 100644 --- a/src/plugins/zlib/istream-zlib.c +++ b/src/plugins/zlib/istream-zlib.c @@ -246,6 +246,6 @@ struct istream *i_stream_create_zlib(int fd) zstream->istream.istream.seekable = TRUE; } - return i_stream_create(&zstream->istream, NULL, fd); + return i_stream_create(&zstream->istream, NULL, -1); } #endif