]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Fixed openssl malloc() failure check.
authorTimo Sirainen <tss@iki.fi>
Wed, 12 Aug 2009 21:01:40 +0000 (17:01 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 12 Aug 2009 21:01:40 +0000 (17:01 -0400)
--HG--
branch : HEAD

src/login-common/ssl-proxy-openssl.c

index 35badb91e7dba72d36ddf294481be5088f132d42..82ceff173b918c061e9fa1670ee3745590b85a32 100644 (file)
@@ -388,7 +388,7 @@ 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) {
+               if (ERR_GET_REASON(ERR_peek_error()) == ERR_R_MALLOC_FAILURE) {
                        i_error("OpenSSL malloc() failed. "
                                "You may need to increase login_process_size");
                }