BUG/MINOR: server: Fix server_finalize_init() to avoid unused variable
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 09:17:10 +0000 (11:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 May 2020 15:39:50 +0000 (17:39 +0200)
commitc3d01347cc06179a1f126e7e772a2b41b477b2ba
treed861692ec449b26a1929b519affcf7933bd9f763
parent840bd181e6876bfc06dd8c8a577c6eb2bd7f4103
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.

(cherry picked from commit b3b53524addbea79f5928b0bd5c58fd201a3e828)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
[Cf: The patch fixes a bug introduced by the commit 8892e5d3. Thus it must be
     backported to the same versions.]
src/server.c