]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] config: fix endless loop when parsing "on-error"
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2010 18:40:37 +0000 (19:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Mar 2010 18:40:37 +0000 (19:40 +0100)
An arg index increment was missing causing the same arg to be parsed
in an endless loop. Proabably a merge conflict that remained undetected.

src/cfgparse.c

index c1583dc1eaed658c311207dab613882479f51f4a..799188b5fca5f111ed0bcdd7293ab225ca124e4c 100644 (file)
@@ -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;