Fix initialization bug in sock_test_client
@@ -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++)
{
