From: Timo Sirainen Date: Fri, 7 Aug 2009 17:56:04 +0000 (-0400) Subject: *-login: If OpenSSL fails with malloc failure, log an error. X-Git-Tag: 2.0.alpha1~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b98a288b40611bef700af18415775e644025774d;p=thirdparty%2Fdovecot%2Fcore.git *-login: If OpenSSL fails with malloc failure, log an error. --HG-- branch : HEAD --- diff --git a/src/login-common/ssl-proxy-openssl.c b/src/login-common/ssl-proxy-openssl.c index f3f995cde7..d741fa49ba 100644 --- a/src/login-common/ssl-proxy-openssl.c +++ b/src/login-common/ssl-proxy-openssl.c @@ -388,6 +388,10 @@ static void ssl_handle_error(struct ssl_proxy *proxy, int ret, 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;