comparison 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
comparison
equal deleted inserted replaced
9304:ecc4b80c4dd1 9305:b7dbcf86086b
379 case SSL_ERROR_ZERO_RETURN: 379 case SSL_ERROR_ZERO_RETURN:
380 /* clean connection closing */ 380 /* clean connection closing */
381 ssl_proxy_destroy(proxy); 381 ssl_proxy_destroy(proxy);
382 break; 382 break;
383 case SSL_ERROR_SSL: 383 case SSL_ERROR_SSL:
384 if (ERR_GET_REASON(err) == ERR_R_MALLOC_FAILURE) { 384 if (ERR_GET_REASON(ERR_peek_error()) == ERR_R_MALLOC_FAILURE) {
385 i_error("OpenSSL malloc() failed. " 385 i_error("OpenSSL malloc() failed. "
386 "You may need to increase login_process_size"); 386 "You may need to increase login_process_size");
387 } 387 }
388 errstr = t_strdup_printf("%s failed: %s", 388 errstr = t_strdup_printf("%s failed: %s",
389 func_name, ssl_last_error()); 389 func_name, ssl_last_error());