mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
[BUG] use_backend would not correctly consider "unless"
A copy-paste typo made use_backend not correctly consider the "unless"
case, depending on the previous "block" rule.
(cherry picked from commit a8cfa34a9c)
This commit is contained in:
parent
3ff2c1d9b8
commit
e05484f3ec
1 changed files with 1 additions and 1 deletions
|
|
@ -1925,7 +1925,7 @@ int process_cli(struct session *t)
|
|||
int ret;
|
||||
|
||||
ret = acl_exec_cond(rule->cond, cur_proxy, t, txn, ACL_DIR_REQ);
|
||||
if (cond->pol == ACL_COND_UNLESS)
|
||||
if (rule->cond->pol == ACL_COND_UNLESS)
|
||||
ret = !ret;
|
||||
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue