From e05484f3ec2f2824c88d3a0c68a415111addadb1 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 9 Jul 2008 11:23:31 +0200 Subject: [PATCH] [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 a8cfa34a9c011cecfaedfaf7d91de3e5f7f004a0) --- src/proto_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_http.c b/src/proto_http.c index e36f4b0b2..f80129c79 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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) {