diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/vnet/session/tcp_echo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/vnet/session/tcp_echo.c b/src/tests/vnet/session/tcp_echo.c index 59314f943f0..de17dcac022 100644 --- a/src/tests/vnet/session/tcp_echo.c +++ b/src/tests/vnet/session/tcp_echo.c @@ -1386,8 +1386,6 @@ main (int argc, char **argv) /* make the main heap thread-safe */ h->flags |= MHEAP_FLAG_THREAD_SAFE; - vec_validate (em->rx_buf, 128 << 10); - memset (em, 0, sizeof (*em)); em->session_index_by_vpp_handles = hash_create (0, sizeof (uword)); em->my_pid = getpid (); @@ -1396,6 +1394,7 @@ main (int argc, char **argv) em->use_sock_api = 1; em->fifo_size = 64 << 10; em->n_clients = 1; + vec_validate (em->rx_buf, 128 << 10); clib_time_init (&em->clib_time); init_error_string_table (em); |