MINOR: proto_tcp: add session in the action prototype
Some actions require the "struct session" while the "struct stream" is not
avalaible. This patch adds a pointer to the session.
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index e499868..00c308a 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -1231,7 +1231,7 @@
}
else {
/* Custom keywords. */
- if (rule->action_ptr && !rule->action_ptr(rule, s->be, s)) {
+ if (rule->action_ptr && !rule->action_ptr(rule, s->be, s->sess, s)) {
s->current_rule = rule;
goto missing_data;
}
@@ -1356,7 +1356,7 @@
}
else {
/* Custom keywords. */
- if (rule->action_ptr && !rule->action_ptr(rule, s->be, s)) {
+ if (rule->action_ptr && !rule->action_ptr(rule, s->be, s->sess, s)) {
channel_dont_close(rep);
s->current_rule = rule;
return 0;
@@ -1441,7 +1441,7 @@
else {
/* Custom keywords. */
if (rule->action_ptr) {
- rule->action_ptr(rule, sess->fe, NULL);
+ rule->action_ptr(rule, sess->fe, sess, NULL);
if (rule->action == TCP_ACT_CUSTOM_CONT)
continue;
}