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'.
This commit is contained in:
Thierry FOURNIER 2015-08-11 09:48:02 +02:00 committed by Willy Tarreau
parent a6b6343cff
commit c89f4f5305

View File

@ -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;