changeset 9305:b7dbcf86086b HEAD

Fixed openssl malloc() failure check.
author Timo Sirainen <tss@iki.fi>
date Tue, 11 Aug 2009 17:38:06 -0400
parents ecc4b80c4dd1
children e3ccd235a7e5
files src/login-common/ssl-proxy-openssl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		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");
 		}