dovecot-2.2: lib-ssl-iostream: Copy the original istream's fd to...

dovecot at dovecot.org dovecot at dovecot.org
Sun Nov 4 19:17:12 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/09da0c7d23bd
changeset: 15375:09da0c7d23bd
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Nov 04 19:16:59 2012 +0200
description:
lib-ssl-iostream: Copy the original istream's fd to the ssl istream.

diffstat:

 src/lib-ssl-iostream/istream-openssl.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r debecd057f9c -r 09da0c7d23bd src/lib-ssl-iostream/istream-openssl.c
--- a/src/lib-ssl-iostream/istream-openssl.c	Sat Nov 03 20:25:17 2012 +0200
+++ b/src/lib-ssl-iostream/istream-openssl.c	Sun Nov 04 19:16:59 2012 +0200
@@ -126,5 +126,6 @@
 	sstream->istream.read = i_stream_ssl_read;
 
 	sstream->istream.istream.readable_fd = FALSE;
-	return i_stream_create(&sstream->istream, NULL, -1);
+	return i_stream_create(&sstream->istream, NULL,
+			       i_stream_get_fd(ssl_io->plain_input));
 }


More information about the dovecot-cvs mailing list