mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-19 02:29:31 -05:00
BUG/MEDIUM: config: a stats-less config crashes in 1.5-dev25
John-Paul Bader reported a stupid regression in 1.5-dev25, we forget to check that global.stats_fe is initialized before visiting its sockets, resulting in a crash. No backport is needed.
This commit is contained in:
parent
2a06e39a4c
commit
4e5ed29668
1 changed files with 1 additions and 1 deletions
|
|
@ -6950,7 +6950,7 @@ out_uri_auth_compat:
|
|||
}
|
||||
|
||||
/* Check multi-process mode compatibility */
|
||||
if (global.nbproc > 1) {
|
||||
if (global.nbproc > 1 && global.stats_fe) {
|
||||
list_for_each_entry(bind_conf, &global.stats_fe->conf.bind, by_fe) {
|
||||
unsigned long mask;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue