]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: init: Initialize idle_orphan_conns for first server in server-template
authorDaniel Corbett <dcorbett@haproxy.com>
Wed, 9 Jan 2019 13:13:29 +0000 (08:13 -0500)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Jan 2019 13:45:21 +0000 (14:45 +0100)
commit43bb842a08a6b772f1d76ff481d5555a8c871dcd
treeda699df535fdbd57295cb713710ac8128ab4210c
parent4dc3f3b4bb860a2707de257cfa97db70f10e1bf2
BUG/MEDIUM: init: Initialize idle_orphan_conns for first server in server-template

When initializing server-template all of the servers after the first
have srv->idle_orphan_conns initialized within server_template_init()
The first server does not have this initialized and when http-reuse
is active this causes a segmentation fault when accessed from
srv_add_to_idle_list().  This patch removes the check for
srv->tmpl_info.prefix within server_finalize_init() and allows
the first server within a server-template to have srv->idle_orphan_conns
properly initialized.

This should be backported to 1.9.
src/server.c