From: Willy Tarreau Date: Mon, 15 Mar 2010 18:40:37 +0000 (+0100) Subject: [BUG] config: fix endless loop when parsing "on-error" X-Git-Tag: v1.4.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f53b25d7c187e305d161f181c83c36fce1e8de8b;p=thirdparty%2Fhaproxy.git [BUG] config: fix endless loop when parsing "on-error" An arg index increment was missing causing the same arg to be parsed in an endless loop. Proabably a merge conflict that remained undetected. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index c1583dc1ea..799188b5fc 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3389,6 +3389,7 @@ stats_error_parsing: err_code |= ERR_ALERT | ERR_FATAL; goto out; } + cur_arg += 2; } else if (!defsrv && !strcmp(args[cur_arg], "source")) { /* address to which we bind when connecting */ int port_low, port_high;