From: Timo Sirainen Date: Tue, 26 Feb 2013 15:18:18 +0000 (+0200) Subject: istream-seekable: Don't forcibly close underlying streams when stream is destroyed. X-Git-Tag: 2.2.rc3~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c99c242ab54a53df73050c64abb641d7989fac9c;p=thirdparty%2Fdovecot%2Fcore.git istream-seekable: Don't forcibly close underlying streams when stream is destroyed. The underlying streams may still have references and be reused for other purposes. --- diff --git a/src/lib/istream-seekable.c b/src/lib/istream-seekable.c index 8bca37507b..ed5ed5b40e 100644 --- a/src/lib/istream-seekable.c +++ b/src/lib/istream-seekable.c @@ -35,13 +35,10 @@ struct seekable_istream { static void i_stream_seekable_close(struct iostream_private *stream) { struct seekable_istream *sstream = (struct seekable_istream *)stream; - unsigned int i; sstream->fd = -1; if (sstream->fd_input != NULL) i_stream_close(sstream->fd_input); - for (i = 0; sstream->input[i] != NULL; i++) - i_stream_close(sstream->input[i]); } static void unref_streams(struct seekable_istream *sstream)