summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/vec_bootstrap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/vec_bootstrap.h b/src/vppinfra/vec_bootstrap.h
index 567041550a4..006d16723e3 100644
--- a/src/vppinfra/vec_bootstrap.h
+++ b/src/vppinfra/vec_bootstrap.h
@@ -190,7 +190,7 @@ _vec_set_len (void *v, uword len, uword elt_sz)
if (len > old_len)
clib_mem_unpoison (v + old_len * elt_sz, (len - old_len) * elt_sz);
- else if (len > old_len)
+ else if (len < old_len)
clib_mem_poison (v + len * elt_sz, (old_len - len) * elt_sz);
_vec_set_grow_elts (v, old_len + grow_elts - len);