From f53b25d7c187e305d161f181c83c36fce1e8de8b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 15 Mar 2010 19:40:37 +0100 Subject: [PATCH] [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. --- src/cfgparse.c | 1 + 1 file changed, 1 insertion(+) 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 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) 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;