From 45059e9b98bae58cd225b748b52d6cec5dacb0a6 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 28 Sep 2015 17:50:10 +0200 Subject: [PATCH] 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. --- src/proto_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_tcp.c b/src/proto_tcp.c index ea7586661..9c0dc37d6 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: