diff --git a/src/cfgparse.c b/src/cfgparse.c index c74638063..d4fac8cdf 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3479,6 +3479,15 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm) } else if (!strcmp(args[0], "stick-table")) { int myidx = 1; + struct proxy *other; + + other = find_stktable(curproxy->id); + if (other) { + Alert("parsing [%s:%d] : stick-table name '%s' conflicts with table declared in %s '%s' at %s:%d.\n", + file, linenum, curproxy->id, proxy_type_str(other), other->id, other->conf.file, other->conf.line); + err_code |= ERR_ALERT | ERR_FATAL; + goto out; + } curproxy->table.id = curproxy->id; curproxy->table.type = (unsigned int)-1;