From d48e9763bfc39106eca954a28223b72261bf1aeb Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 22 Aug 2017 23:29:33 -0400 Subject: Fix initialization bug in sock_test_client Change-Id: Ieeae23a81f6f747b96c2a115bd8a62e8962428cd Signed-off-by: Dave Wallace --- src/uri/sock_test_client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/uri') 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++) { -- cgit 1.2.3-korg