[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.
This commit is contained in:
Willy Tarreau 2010-03-15 19:40:37 +01:00
parent 2a56c5e1c3
commit f53b25d7c1
1 changed files with 1 additions and 0 deletions

View File

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