]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: build: Fix compilation of mux_fcgi.c when compiled without SSL
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Sep 2019 11:46:47 +0000 (13:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Sep 2019 11:50:20 +0000 (13:50 +0200)
The function ssl_sock_is_ssl is only available when HAProxy is compile with the
SSL support.

This patch fixes the issue #279. No need to backport.

src/mux_fcgi.c

index 08d3806c90fa44bad98958a91a39beae808f07ff..d2115ac9c51a8d558ef48192be035b35e29cb3fe 100644 (file)
@@ -982,9 +982,11 @@ static int fcgi_set_default_param(struct fcgi_conn *fconn, struct fcgi_strm *fst
                params->cont_len = ist2(b_tail(params->p), end - b_tail(params->p));
                params->p->data += params->cont_len.len;
        }
+#ifdef USE_OPENSSL
        if (!(params->mask & FCGI_SP_HTTPS)) {
                params->https = ssl_sock_is_ssl(cli_conn);
        }
+#endif
        if ((params->mask & FCGI_SP_URI_MASK) != FCGI_SP_URI_MASK) {
                /* one of scriptname, pathinfo or query_string is no set */
                struct ist path = http_get_path(params->uri);