dovecot-1.2: *-login: If OpenSSL fails with malloc failure, log ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 7 20:56:10 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/c00df1152f1f
changeset: 9288:c00df1152f1f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 07 13:56:04 2009 -0400
description:
*-login: If OpenSSL fails with malloc failure, log an error.

diffstat:

1 file changed, 4 insertions(+)
src/login-common/ssl-proxy-openssl.c |    4 ++++

diffs (14 lines):

diff -r d7251058200c -r c00df1152f1f src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Fri Aug 07 13:24:13 2009 -0400
+++ b/src/login-common/ssl-proxy-openssl.c	Fri Aug 07 13:56:04 2009 -0400
@@ -381,6 +381,10 @@ static void ssl_handle_error(struct ssl_
 		ssl_proxy_destroy(proxy);
 		break;
 	case SSL_ERROR_SSL:
+		if (ERR_GET_REASON(err) == ERR_R_MALLOC_FAILURE) {
+			i_error("OpenSSL malloc() failed. "
+				"You may need to increase login_process_size");
+		}
 		errstr = t_strdup_printf("%s failed: %s",
 					 func_name, ssl_last_error());
 		break;


More information about the dovecot-cvs mailing list