From: Willy Tarreau Date: Wed, 9 Jul 2008 09:23:31 +0000 (+0200) Subject: [BUG] use_backend would not correctly consider "unless" X-Git-Tag: v1.3.15.3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e05484f3ec2f2824c88d3a0c68a415111addadb1;p=thirdparty%2Fhaproxy.git [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) --- diff --git a/src/proto_http.c b/src/proto_http.c index e36f4b0b29..f80129c790 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) {