summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/session.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index fd52f2bbc1c..5c45cf25146 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1607,13 +1607,8 @@ session_register_transport (transport_proto_t transport_proto,
vec_validate (smm->session_tx_fns, session_type);
if (output_node != ~0)
- {
- foreach_vlib_main ()
- {
- next_index = vlib_node_add_next (
- this_vlib_main, session_queue_node.index, output_node);
- }
- }
+ next_index = vlib_node_add_next (vlib_get_main (),
+ session_queue_node.index, output_node);
smm->session_type_to_next[session_type] = next_index;
smm->session_tx_fns[session_type] =