From 74be0174580cd2c6ea87e083912a211aa6aef65d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 May 2009 21:35:07 -0400 Subject: [PATCH] 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 --- src/plugins/zlib/istream-zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3