Browse Source

set the "addr" field in the dir_handle_get tests, to resolve bug warnings.

Nick Mathewson 7 years ago
parent
commit
bee5f38e39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/test/test_dir_handle_get.c

+ 1 - 0
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;
 }