mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
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.
This commit is contained in:
parent
e15029bea9
commit
e0c51ae358
@ -157,10 +157,11 @@ static inline struct bind_conf *bind_conf_alloc(struct proxy *fe, const char *fi
|
|||||||
bind_conf->xprt = xprt;
|
bind_conf->xprt = xprt;
|
||||||
bind_conf->frontend = fe;
|
bind_conf->frontend = fe;
|
||||||
bind_conf->severity_output = CLI_SEVERITY_NONE;
|
bind_conf->severity_output = CLI_SEVERITY_NONE;
|
||||||
|
#ifdef USE_OPENSSL
|
||||||
HA_RWLOCK_INIT(&bind_conf->sni_lock);
|
HA_RWLOCK_INIT(&bind_conf->sni_lock);
|
||||||
bind_conf->sni_ctx = EB_ROOT;
|
bind_conf->sni_ctx = EB_ROOT;
|
||||||
bind_conf->sni_w_ctx = EB_ROOT;
|
bind_conf->sni_w_ctx = EB_ROOT;
|
||||||
|
#endif
|
||||||
LIST_INIT(&bind_conf->listeners);
|
LIST_INIT(&bind_conf->listeners);
|
||||||
return bind_conf;
|
return bind_conf;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user