From c89f4f530588a5c23a29d848d4a27a6799359dd4 Mon Sep 17 00:00:00 2001 From: Thierry FOURNIER Date: Tue, 11 Aug 2015 09:48:02 +0200 Subject: [PATCH] BUG/MINOR: proto_tcp: custom action continue is ignored The custom action is ignored by 'tcp-request connection'. This patch fix this behavior and take in account the value of the flag 'action'. --- src/proto_tcp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/proto_tcp.c b/src/proto_tcp.c index e6da5d18e..e4998682e 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -1440,8 +1440,11 @@ int tcp_exec_req_rules(struct session *sess) } else { /* Custom keywords. */ - if (rule->action_ptr) + if (rule->action_ptr) { rule->action_ptr(rule, sess->fe, NULL); + if (rule->action == TCP_ACT_CUSTOM_CONT) + continue; + } /* otherwise it's an accept */ break; -- 2.47.3