From: Willy Tarreau Date: Mon, 28 Sep 2015 15:50:10 +0000 (+0200) Subject: BUG/MEDIUM: tcp: fix inverted condition to call custom actions X-Git-Tag: v1.6-dev6~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45059e9b98bae58cd225b748b52d6cec5dacb0a6;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: tcp: fix inverted condition to call custom actions tcp-request connection had an inverted condition on action_ptr, resulting in no registered actions to be usable since commit 4214873 ("MEDIUM: actions: remove ACTION_STOP") merged in 1.6-dev5. Very few new actions were impacted. No backport is needed. --- diff --git a/src/proto_tcp.c b/src/proto_tcp.c index ea7586661c..9c0dc37d6b 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -1392,7 +1392,7 @@ int tcp_exec_req_rules(struct session *sess) } else { /* Custom keywords. */ - if (rule->action_ptr) + if (!rule->action_ptr) break; switch (rule->action_ptr(rule, sess->fe, sess, NULL, ACT_FLAG_FINAL | ACT_FLAG_FIRST)) { case ACT_RET_YIELD: