mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 16:34:42 +00: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
@ -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 New Issue
Block a user