mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 08:51:28 -04:00
BUG/MINOR: server: Fix server_finalize_init() to avoid unused variable
The variable 'ret' must only be declared When HAProxy is compiled with the SSL support (more precisely SSL_CTRL_SET_TLSEXT_HOSTNAME must be defined). No backport needed.
This commit is contained in:
parent
f97f846413
commit
b3b53524ad
1 changed files with 2 additions and 0 deletions
|
|
@ -1805,7 +1805,9 @@ static int server_sni_expr_init(const char *file, int linenum, char **args, int
|
|||
static int server_finalize_init(const char *file, int linenum, char **args, int cur_arg,
|
||||
struct server *srv, struct proxy *px)
|
||||
{
|
||||
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
||||
int ret;
|
||||
#endif
|
||||
|
||||
if (srv->do_check && srv->trackit) {
|
||||
ha_alert("parsing [%s:%d]: unable to enable checks and tracking at the same time!\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue