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

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 12 00:38:12 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/b7dbcf86086b
changeset: 9305:b7dbcf86086b
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 11 17:38:06 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 ecc4b80c4dd1 -r b7dbcf86086b src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Sun Aug 09 17:53:07 2009 -0400
+++ b/src/login-common/ssl-proxy-openssl.c	Tue Aug 11 17:38:06 2009 -0400
@@ -381,7 +381,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