From: Willy Tarreau Date: Tue, 13 May 2014 11:37:54 +0000 (+0200) Subject: BUG/MEDIUM: config: a stats-less config crashes in 1.5-dev25 X-Git-Tag: v1.5-dev26~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e5ed29668d9a8bb090cad15068317beb167ec72;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index decdcfd0e2..9ec69a1f83 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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;