mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02: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.
This commit is contained in:
parent
0c303eec87
commit
a8cfa34a9c
@ -2004,7 +2004,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 New Issue
Block a user