summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXiaoming Jiang <jiangxiaoming@outlook.com>2022-12-08 08:08:41 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-03-06 14:07:18 +0000
commit73507dd1aa1f8ae7573fc73025ed1b9fc0db3532 (patch)
tree3c439167a5a6c532e1005e0d8ea24128eb94f4da /src
parent8b213ee652dd69d941865fa59e1f780843016475 (diff)
stats: fix node name compare error when updating stats segment
Type: fix Signed-off-by: Xiaoming Jiang <jiangxiaoming@outlook.com> Change-Id: Ib39aa345415720dd05a1b3e12e3e03eac43c5606
Diffstat (limited to 'src')
-rw-r--r--src/vlib/stats/collector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/stats/collector.c b/src/vlib/stats/collector.c
index 53fbfa01a22..b23f3df5713 100644
--- a/src/vlib/stats/collector.c
+++ b/src/vlib/stats/collector.c
@@ -52,7 +52,7 @@ update_node_counters (vlib_stats_segment_t *sm)
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)