diff options
Diffstat (limited to 'src/uri/sock_test_client.c')
-rw-r--r-- | src/uri/sock_test_client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uri/sock_test_client.c b/src/uri/sock_test_client.c index 26d096be429..4319f01b5ab 100644 --- a/src/uri/sock_test_client.c +++ b/src/uri/sock_test_client.c @@ -494,6 +494,9 @@ sock_test_connect_test_sockets (uint32_t num_test_sockets) return -1; } + if (!scm->test_socket) + memset (tsock, 0, sizeof (*tsock)); + scm->test_socket = tsock; for (i = scm->num_test_sockets; i < num_test_sockets; i++) { |