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:
Willy Tarreau 2014-05-13 13:37:54 +02:00
parent 2a06e39a4c
commit 4e5ed29668

View File

@ -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;