[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:
Willy Tarreau 2008-07-09 11:23:31 +02:00
parent 3ff2c1d9b8
commit e05484f3ec

View file

@ -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) {