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.16-rc1~240 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8cfa34a9c011cecfaedfaf7d91de3e5f7f004a0;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. --- diff --git a/src/proto_http.c b/src/proto_http.c index beb14d4cae..3ee28ab4ef 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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) {