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; }