stats: fix node name compare error when updating stats segment
Type: fix
Signed-off-by: Xiaoming Jiang <jiangxiaoming@outlook.com>
Change-Id: Ib39aa345415720dd05a1b3e12e3e03eac43c5606
diff --git a/src/vlib/stats/collector.c b/src/vlib/stats/collector.c
index 53fbfa0..b23f3df 100644
--- a/src/vlib/stats/collector.c
+++ b/src/vlib/stats/collector.c
@@ -52,7 +52,7 @@
vec_validate (node_data, n_nodes - 1);
for (i = 0; i < n_nodes; i++)
- if (vec_is_equal (node_data[i].name, node_dups[0][i]) == 0)
+ if (vec_is_equal (node_data[i].name, node_dups[0][i]->name) == 0)
bmp = clib_bitmap_set (bmp, i, 1);
if (bmp)