summaryrefslogtreecommitdiffstats
path: root/plugins/snat-plugin/snat/in2out.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/snat-plugin/snat/in2out.c')
-rw-r--r--plugins/snat-plugin/snat/in2out.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/snat-plugin/snat/in2out.c b/plugins/snat-plugin/snat/in2out.c
index e1edbb81581..43ee2d0e75a 100644
--- a/plugins/snat-plugin/snat/in2out.c
+++ b/plugins/snat-plugin/snat/in2out.c
@@ -1047,6 +1047,8 @@ snat_in2out_worker_handoff_fn (vlib_main_t * vm,
u32 current_worker_index = ~0;
u32 cpu_index = os_get_cpu_number ();
+ ASSERT (vec_len (sm->workers));
+
if (PREDICT_FALSE (handoff_queue_elt_by_worker_index == 0))
{
vec_validate (handoff_queue_elt_by_worker_index, tm->n_vlib_mains - 1);