dovecot-2.2: istream-seekable: Don't forcibly close underlying s...

dovecot at dovecot.org dovecot at dovecot.org
Tue Feb 26 17:18:23 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/9297e1fcbe9e
changeset: 15979:9297e1fcbe9e
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Feb 26 17:18:18 2013 +0200
description:
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.

diffstat:

 src/lib/istream-seekable.c |  3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r 526cd348936a -r 9297e1fcbe9e src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c	Tue Feb 26 17:16:33 2013 +0200
+++ b/src/lib/istream-seekable.c	Tue Feb 26 17:18:18 2013 +0200
@@ -35,13 +35,10 @@
 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)


More information about the dovecot-cvs mailing list