]> 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>
Mon, 28 Jul 2008 10:48:30 +0000 (12:48 +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 25ed54c5b1349e112b58e129622a56073bdb7539..27701e83a25957a56a93f32b4eb789901a323ac2 100644 (file)
@@ -1875,7 +1875,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) {