]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
istream-seekable: Don't forcibly close underlying streams when stream is destroyed.
authorTimo Sirainen <tss@iki.fi>
Tue, 26 Feb 2013 15:18:18 +0000 (17:18 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 26 Feb 2013 15:18:18 +0000 (17:18 +0200)
The underlying streams may still have references and be reused for other
purposes.

src/lib/istream-seekable.c

index 8bca37507bf6c8244f687bb29613bf2e28bbf810..ed5ed5b40e371b1ee298e44ff88032d576a46b92 100644 (file)
@@ -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)