Mercurial > dovecot > original-hg > dovecot-1.2
diff src/login-common/ssl-proxy-openssl.c @ 9305:b7dbcf86086b HEAD
Fixed openssl malloc() failure check.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 11 Aug 2009 17:38:06 -0400 |
parents | c00df1152f1f |
children | 26ca4ff5d269 |
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"); }