diff options
author | Dave Barach <dave@barachs.net> | 2018-02-05 09:45:43 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-02-05 16:09:31 +0000 |
commit | 1403fcd7ec2da72334f5df20f0b7e6dbba24d856 (patch) | |
tree | b4bbf1a7050a531823f02a99523be42285cac39e /src/vlib/node_funcs.h | |
parent | 21c8baf9a77b49af3dd54a7f64ce34dc932f10c3 (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/node_funcs.h')
-rw-r--r-- | src/vlib/node_funcs.h | 2 |
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); |