]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: remove the now unused loop over "block" rules
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2014 20:13:52 +0000 (22:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Apr 2014 20:15:00 +0000 (22:15 +0200)
This ruleset is now always empty, simply remove it.

src/proto_http.c

index 14b083580b2f712ef114733a71a7bb6b248dd34e..3cfa8e2d3f0a0fba640b81a5d428008f79c11b2d 100644 (file)
@@ -3813,7 +3813,6 @@ int http_process_req_common(struct session *s, struct channel *req, int an_bit,
 {
        struct http_txn *txn = &s->txn;
        struct http_msg *msg = &txn->req;
-       struct acl_cond *cond;
        struct http_req_rule *http_req_last_rule = NULL;
        struct redirect_rule *rule;
        struct cond_wordlist *wl;
@@ -3837,18 +3836,6 @@ int http_process_req_common(struct session *s, struct channel *req, int an_bit,
        /* just in case we have some per-backend tracking */
        session_inc_be_http_req_ctr(s);
 
-       /* first check whether we have some ACLs set to block this request */
-       list_for_each_entry(cond, &px->block_rules, list) {
-               int ret = acl_exec_cond(cond, px, s, txn, SMP_OPT_DIR_REQ|SMP_OPT_FINAL);
-
-               ret = acl_pass(ret);
-               if (cond->pol == ACL_COND_UNLESS)
-                       ret = !ret;
-
-               if (ret)
-                       goto deny;
-       }
-
        /* evaluate http-request rules */
        http_req_last_rule = http_req_get_intercept_rule(px, &px->http_req_rules, s, txn);