From: Willy Tarreau Date: Sun, 4 Oct 2009 19:13:39 +0000 (+0200) Subject: [BUG] config: look for ID conflicts in all sockets, not only last ones. X-Git-Tag: v1.4-dev4~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d7e335127427102cc89d6f07c12218a3be0f35e;p=thirdparty%2Fhaproxy.git [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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 5eab73de81..b35a15ea6c 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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]);