[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:
Willy Tarreau 2008-07-09 11:23:31 +02:00
parent 0c303eec87
commit a8cfa34a9c

View File

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