]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] config: look for ID conflicts in all sockets, not only last ones.
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 19:13:39 +0000 (21:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 19:13:39 +0000 (21:13 +0200)
ID conflicts between 'bind' lines were not detected due to this typo.

src/cfgparse.c

index 5eab73de8175e520968dd0f6521a3549d5be5e03..b35a15ea6c0e4b0ee8608e5cf74fb69b89e13467 100644 (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]);