aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-07 14:30:51 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-07 14:30:51 -0400
commitbee5f38e39243dc229f4067b170ed355f40108cf (patch)
tree3e2fa93354d00dec712882d6ffbe1290920ad62e
parentab4485e281739772e2295acb574f73efe269647c (diff)
downloadtor-bee5f38e39243dc229f4067b170ed355f40108cf.tar.gz
tor-bee5f38e39243dc229f4067b170ed355f40108cf.zip
set the "addr" field in the dir_handle_get tests, to resolve bug warnings.
-rw-r--r--src/test/test_dir_handle_get.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c
index ce34e48543..a0f22f1f0c 100644
--- a/src/test/test_dir_handle_get.c
+++ b/src/test/test_dir_handle_get.c
@@ -73,6 +73,7 @@ static dir_connection_t *
new_dir_conn(void)
{
dir_connection_t *conn = dir_connection_new(AF_INET);
+ tor_addr_from_ipv4h(&conn->base_.addr, 0x7f000001);
return conn;
}