]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
set the "addr" field in the dir_handle_get tests, to resolve bug warnings.
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Sep 2016 18:30:51 +0000 (14:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Sep 2016 18:30:51 +0000 (14:30 -0400)
src/test/test_dir_handle_get.c

index ce34e4854347a38041a53aef4c0050cc42823e49..a0f22f1f0cf78aca054b4473efe4f5500ad3e261 100644 (file)
@@ -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;
 }