mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-16 22:58:02 +00:00
BUG/MEDIUM: peers: only the last peers section was used by tables
Due to a typo in the peers section lookup code, the last declared peers section was used instead of the one matching the requested name. This bug has been there since the very first commit on peers section (1.5-dev2).
This commit is contained in:
parent
1f31c73030
commit
973ca49795
@ -6192,7 +6192,7 @@ int check_config_validity()
|
||||
for (curpeers = peers; curpeers; curpeers = curpeers->next) {
|
||||
if (strcmp(curpeers->id, curproxy->table.peers.name) == 0) {
|
||||
free((void *)curproxy->table.peers.name);
|
||||
curproxy->table.peers.p = peers;
|
||||
curproxy->table.peers.p = curpeers;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user