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.
This commit is contained in:
parent
5b78d9b437
commit
45059e9b98
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user