From: Baptiste Assmann Date: Fri, 5 Oct 2012 09:48:04 +0000 (+0200) Subject: BUILD: fix build issue without USE_OPENSSL X-Git-Tag: v1.5-dev13~198 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6baecfe23df016190ce80031b6be31d7f149592;p=thirdparty%2Fhaproxy.git BUILD: fix build issue without USE_OPENSSL The SSL check referenced use_ssl which only exists when USE_OPENSSL is set. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index c6b0235a1e..86bc15c132 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -4570,11 +4570,12 @@ stats_error_parsing: * same as for the production traffic. Otherwise we use raw_sock by * default, unless one is specified. */ +#ifdef USE_OPENSSL if (!newsrv->check.port && !is_addr(&newsrv->check.addr)) { newsrv->check.use_ssl |= newsrv->use_ssl; newsrv->check.send_proxy |= (newsrv->state & SRV_SEND_PROXY); } - +#endif /* try to get the port from check.addr if check.port not set */ if (!newsrv->check.port) newsrv->check.port = get_host_port(&newsrv->check.addr);