aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
index ca1e320700e..f810ae5fec4 100644
--- a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
+++ b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
@@ -1289,6 +1289,9 @@ vnet_lisp_flush_stats (void)
vlib_combined_counter_main_t *cm = &lgm->counters;
u32 i;
+ if (cm->counters == NULL)
+ return 0;
+
for (i = 0; i < vlib_combined_counter_n_counters (cm); i++)
vlib_zero_combined_counter (cm, i);