dovecot-2.1: lib-ssl-iostream: Pass the plain istream's fd to ss...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 31 18:27:32 EET 2013


details:   http://hg.dovecot.org/dovecot-2.1/rev/bf80034a547d
changeset: 14891:bf80034a547d
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 31 18:27:22 2013 +0200
description:
lib-ssl-iostream: Pass the plain istream's fd to ssl_istream.

diffstat:

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

diffs (11 lines):

diff -r f35a8649634c -r bf80034a547d src/lib-ssl-iostream/istream-openssl.c
--- a/src/lib-ssl-iostream/istream-openssl.c	Thu Jan 31 18:17:10 2013 +0200
+++ b/src/lib-ssl-iostream/istream-openssl.c	Thu Jan 31 18:27:22 2013 +0200
@@ -82,5 +82,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