[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit bee5f38e39243dc229f4067b170ed355f40108cf
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits