[tor-commits] [tor/master] set the "addr" field in the dir_handle_get tests, to resolve bug warnings.

nickm at torproject.org nickm at torproject.org
Wed Sep 7 18:30:55 UTC 2016


commit bee5f38e39243dc229f4067b170ed355f40108cf
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Sep 7 14:30:51 2016 -0400

    set the "addr" field in the dir_handle_get tests, to resolve bug warnings.
---
 src/test/test_dir_handle_get.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c
index ce34e48..a0f22f1 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;
 }
 



More information about the tor-commits mailing list