dovecot-2.2: lib-ssl-iostream: Inherit output stream's error han...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jul 28 17:56:05 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/c4bef64d28ac
changeset: 14721:c4bef64d28ac
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jul 28 17:33:45 2012 +0300
description:
lib-ssl-iostream: Inherit output stream's error handling from parent.

diffstat:

 src/lib-ssl-iostream/iostream-openssl.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r ff479f84022f -r c4bef64d28ac src/lib-ssl-iostream/iostream-openssl.c
--- a/src/lib-ssl-iostream/iostream-openssl.c	Sat Jul 28 17:32:14 2012 +0300
+++ b/src/lib-ssl-iostream/iostream-openssl.c	Sat Jul 28 17:33:45 2012 +0300
@@ -2,7 +2,7 @@
 
 #include "lib.h"
 #include "istream.h"
-#include "ostream.h"
+#include "ostream-private.h"
 #include "iostream-openssl.h"
 
 #include <openssl/err.h>
@@ -223,6 +223,9 @@
 	*input = i_stream_create_ssl(ssl_io);
 	*output = o_stream_create_ssl(ssl_io);
 
+	if (ssl_io->plain_output->real_stream->error_handling_disabled)
+		o_stream_set_no_error_handling(*output, TRUE);
+
 	ssl_io->ssl_output = *output;
 	*iostream_r = ssl_io;
 	return 0;


More information about the dovecot-cvs mailing list