]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] use_backend would not correctly consider "unless"
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Jul 2008 09:23:31 +0000 (11:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Sep 2008 08:50:01 +0000 (10:50 +0200)
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

index e36f4b0b290730a7e27f2008f908ebcf16c98126..f80129c790f130efee0647bfe8547aef13ffdeb1 100644 (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) {