summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-02-23 15:21:40 -0500
committerDavid Goulet <dgoulet@torproject.org>2022-02-23 15:21:40 -0500
commit45416356ed7dc5551cda491c01a4d7df1ed97a20 (patch)
tree22d04baf12f059fbe910fb4e0c65752dd27c7ef6 /src/test
parentd09e58d9bf0a2c94cec886756351cb718cb31959 (diff)
parent5ee85c1fac9adbc09e0930166841c192129b2c28 (diff)
downloadtor-45416356ed7dc5551cda491c01a4d7df1ed97a20.tar.gz
tor-45416356ed7dc5551cda491c01a4d7df1ed97a20.zip
Merge branch 'tor-gitlab/mr/488'
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_connection.c b/src/test/test_connection.c
index 87940f71e6..fbf9d6a5ab 100644
--- a/src/test/test_connection.c
+++ b/src/test/test_connection.c
@@ -826,6 +826,7 @@ test_failed_orconn_tracker(void *arg)
/* Prepare the OR connection that will be used in this test */
or_connection_t or_conn;
+ memset(&or_conn, 0, sizeof(or_conn));
tt_int_op(AF_INET,OP_EQ, tor_addr_parse(&or_conn.canonical_orport.addr,
"18.0.0.1"));
tt_int_op(AF_INET,OP_EQ, tor_addr_parse(&or_conn.base_.addr, "18.0.0.1"));