Using proper functions to create tor_addr_t.

This commit is contained in:
rl1987
2013-11-20 21:49:17 +02:00
committed by Nick Mathewson
parent 3a4b24c3ab
commit e82e772f2b
3 changed files with 5 additions and 17 deletions
+1 -2
View File
@@ -535,8 +535,7 @@ dirserv_router_has_valid_address(routerinfo_t *ri)
}
tor_addr_t toraddr;
toraddr.family = AF_INET;
toraddr.addr.in_addr = iaddr;
tor_addr_from_in(&toraddr,&iaddr);
if (tor_addr_is_internal(&toraddr, 0)) {
log_info(LD_DIRSERV,