[BUG] config: look for ID conflicts in all sockets, not only last ones.

ID conflicts between 'bind' lines were not detected due to this typo.
This commit is contained in:
Willy Tarreau 2009-10-04 21:13:39 +02:00
parent aeebf9ba65
commit 9d7e335127

View File

@ -1180,7 +1180,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
goto out;
}
for (l = curproxy->listen; l != last_listen; l = l->next)
for (l = curproxy->listen; l; l = l->next)
if (curproxy->listen != l && l->luid == curproxy->listen->luid) {
Alert("parsing [%s:%d]: custom id has to be unique but is duplicated in %s.\n",
file, linenum, args[1]);