dovecot-2.0: Fixed openssl malloc() failure check.

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 13 00:06:38 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/78a47e564e90
changeset: 9768:78a47e564e90
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 12 17:01:40 2009 -0400
description:
Fixed openssl malloc() failure check.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/login-common/ssl-proxy-openssl.c |    2 +-

diffs (12 lines):

diff -r 50df3e60ab85 -r 78a47e564e90 src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Wed Aug 12 16:43:41 2009 -0400
+++ b/src/login-common/ssl-proxy-openssl.c	Wed Aug 12 17:01:40 2009 -0400
@@ -388,7 +388,7 @@ 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) {
+		if (ERR_GET_REASON(ERR_peek_error()) == ERR_R_MALLOC_FAILURE) {
 			i_error("OpenSSL malloc() failed. "
 				"You may need to increase login_process_size");
 		}


More information about the dovecot-cvs mailing list