dovecot-2.0: *-login: If OpenSSL fails with malloc failure, log ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Aug 7 20:56:23 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/2e725e1aaac6
changeset: 9740:2e725e1aaac6
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 f108a865dbca -r 2e725e1aaac6 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
@@ -388,6 +388,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