]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: silence a warning when building without NPN nor ALPN support
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jan 2018 17:55:19 +0000 (18:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Jan 2018 18:04:08 +0000 (19:04 +0100)
When building with a library not offering any of these, ssl_conf_cur
is not used.

Can be backported to 1.8.

src/ssl_sock.c

index f9d5f25675e3fc532e5402329aad05adc8967d8f..163b6a13fe1796d3a598706fe575ae4aab007eb9 100644 (file)
@@ -4044,7 +4044,7 @@ int ssl_sock_prepare_ctx(struct bind_conf *bind_conf, struct ssl_bind_conf *ssl_
        struct proxy *curproxy = bind_conf->frontend;
        int cfgerr = 0;
        int verify = SSL_VERIFY_NONE;
-       struct ssl_bind_conf *ssl_conf_cur;
+       struct ssl_bind_conf __maybe_unused *ssl_conf_cur;
        const char *conf_ciphers;
        const char *conf_curves = NULL;