summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_bt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/tcp/tcp_bt.c')
-rw-r--r--src/vnet/tcp/tcp_bt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_bt.c b/src/vnet/tcp/tcp_bt.c
index dd3d9539d9a..fe007543cd0 100644
--- a/src/vnet/tcp/tcp_bt.c
+++ b/src/vnet/tcp/tcp_bt.c
@@ -544,6 +544,7 @@ tcp_bt_flush_samples (tcp_connection_t * tc)
u32 *samples = 0, *si;
vec_validate (samples, pool_elts (bt->samples) - 1);
+ vec_reset_length (samples);
/* *INDENT-OFF* */
pool_foreach (bts, bt->samples, ({