aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-08-22 23:29:33 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-08-24 15:22:26 +0000
commitd48e9763bfc39106eca954a28223b72261bf1aeb (patch)
treecdd461f33faa9063a85f6235fe4a5276877d31ca /src/uri
parentc60cbde78a3a20638534cb0b9ad4452f67528d91 (diff)
Fix initialization bug in sock_test_client
Change-Id: Ieeae23a81f6f747b96c2a115bd8a62e8962428cd Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/uri')
-rw-r--r--src/uri/sock_test_client.c3
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++)
{