summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-02-05 09:45:43 -0500
committerFlorin Coras <florin.coras@gmail.com>2018-02-05 16:09:31 +0000
commit1403fcd7ec2da72334f5df20f0b7e6dbba24d856 (patch)
treeb4bbf1a7050a531823f02a99523be42285cac39e /src/vlib
parent21c8baf9a77b49af3dd54a7f64ce34dc932f10c3 (diff)
Fix ip4/6_reass_main.ip4/6_reass_expire_node_idx used before set
Add an ASSERT to vlib_process_signal_event_helper to catch future instances of passing node_index = 0 to vlib_process_signal_event(). Change-Id: Iec896fc7c3917feb2fd3198cea42851ba88e64e5 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/node_funcs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/node_funcs.h b/src/vlib/node_funcs.h
index 6607d31f67e..547f09b7355 100644
--- a/src/vlib/node_funcs.h
+++ b/src/vlib/node_funcs.h
@@ -775,6 +775,8 @@ vlib_process_signal_event_helper (vlib_node_main_t * nm,
uword p_flags, add_to_pending, delete_from_wheel;
void *data_to_be_written_by_caller;
+ ASSERT (n->type == VLIB_NODE_TYPE_PROCESS);
+
ASSERT (!pool_is_free_index (p->event_type_pool, t));
vec_validate (p->pending_event_data_by_type_index, t);