summaryrefslogtreecommitdiffstats
path: root/src/vlib/stats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-21 21:08:00 +0100
committerFlorin Coras <florin.coras@gmail.com>2022-03-21 21:13:31 +0000
commitf0574da2b75f3e035362996d6e1246150eb64bea (patch)
tree6175b336a699f9c25b979d6ed361d2840e2713da /src/vlib/stats
parente09bd48e354d8701091437cafda6b29163ed2d58 (diff)
stats: fix vlib_stats_validate_will_expand_internal
Type: fix Change-Id: If4c0b23aaa4fc57c0783efcbe349aba5e5885b30 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/stats')
-rw-r--r--src/vlib/stats/stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/stats/stats.c b/src/vlib/stats/stats.c
index 75c3986f3b9..61f620469b1 100644
--- a/src/vlib/stats/stats.c
+++ b/src/vlib/stats/stats.c
@@ -412,7 +412,7 @@ vlib_stats_validate_will_expand_internal (u32 entry_index, va_list *va)
goto done;
for (u32 i = 0; i <= idx0; i++)
- if (idx1 >= vec_max_len (data[idx0]))
+ if (idx1 >= vec_max_len (data[i]))
goto done;
}
else if (e->type == STAT_DIR_TYPE_COUNTER_VECTOR_COMBINED)
@@ -427,7 +427,7 @@ vlib_stats_validate_will_expand_internal (u32 entry_index, va_list *va)
goto done;
for (u32 i = 0; i <= idx0; i++)
- if (idx1 >= vec_max_len (data[idx0]))
+ if (idx1 >= vec_max_len (data[i]))
goto done;
}
else