From e0c51ae3589d2ba5ad7c80d38a9e44384757dbb7 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 14 Oct 2019 11:12:35 +0200 Subject: [PATCH] BUG/MINOR: ssl: fix build without SSL Commits 222a7c6 and 150bfa8 introduced some SSL initialization in bind_conf_alloc() which broke the build without SSL. Issue #322. --- include/proto/listener.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/proto/listener.h b/include/proto/listener.h index 3648882b1..2336e6346 100644 --- a/include/proto/listener.h +++ b/include/proto/listener.h @@ -157,10 +157,11 @@ static inline struct bind_conf *bind_conf_alloc(struct proxy *fe, const char *fi bind_conf->xprt = xprt; bind_conf->frontend = fe; bind_conf->severity_output = CLI_SEVERITY_NONE; +#ifdef USE_OPENSSL HA_RWLOCK_INIT(&bind_conf->sni_lock); bind_conf->sni_ctx = EB_ROOT; bind_conf->sni_w_ctx = EB_ROOT; - +#endif LIST_INIT(&bind_conf->listeners); return bind_conf; }