]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix build issue without USE_OPENSSL
authorBaptiste Assmann <bassmann@exceliance.fr>
Fri, 5 Oct 2012 09:48:04 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Oct 2012 09:48:04 +0000 (11:48 +0200)
The SSL check referenced use_ssl which only exists when USE_OPENSSL is set.

src/cfgparse.c

index c6b0235a1e5e28fe17de43844c19d57c721f48fd..86bc15c1325f8be38601803d33b8dbc12c2301c3 100644 (file)
@@ -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);