]> 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>
Wed, 9 Jul 2008 09:23:31 +0000 (11:23 +0200)
A copy-paste typo made use_backend not correctly consider the "unless"
case, depending on the previous "block" rule.

src/proto_http.c

index beb14d4cae1f1791e25baac7855321b7215485d4..3ee28ab4ef332d849e1f0443722c779d9fcb710d 100644 (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) {