diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/hs_apps/vcl/sock_test_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/hs_apps/vcl/sock_test_client.c b/src/plugins/hs_apps/vcl/sock_test_client.c index 569fd0759e1..13227f28265 100644 --- a/src/plugins/hs_apps/vcl/sock_test_client.c +++ b/src/plugins/hs_apps/vcl/sock_test_client.c @@ -620,8 +620,9 @@ sock_test_connect_test_sockets (uint32_t num_test_sockets) return -1; } - if (!scm->test_socket) - memset (tsock, 0, sizeof (*tsock)); + memset (&tsock[scm->num_test_sockets], 0, + sizeof (vcl_test_session_t) * (num_test_sockets - + scm->num_test_sockets)); scm->test_socket = tsock; for (i = scm->num_test_sockets; i < num_test_sockets; i++) |