diff options
Diffstat (limited to 'src/plugins/tracedump')
-rw-r--r-- | src/plugins/tracedump/tracedump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/tracedump/tracedump.c b/src/plugins/tracedump/tracedump.c index 0c0f3b493b3..10107ac799e 100644 --- a/src/plugins/tracedump/tracedump.c +++ b/src/plugins/tracedump/tracedump.c @@ -420,7 +420,8 @@ vl_api_trace_v2_dump_t_handler (vl_api_trace_v2_dump_t *mp) /* Save the cache, one way or the other */ tdmp->traces[client_index] = client_trace_cache; - for (i = first_thread_id; i <= last_thread_id; i++) + for (i = first_thread_id; + i <= last_thread_id && i < vec_len (client_trace_cache); i++) { // dump a number of 'max' packets per thead for (j = first_position; |