diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2013-11-20 21:49:17 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-03 14:20:24 -0500 |
commit | e82e772f2b1a2b2235d3b3bcde85666e09a182b5 (patch) | |
tree | 142878ebb0e236afaf1df8a4b4a5ed8eb2c3afd5 /src/or/dirserv.c | |
parent | 3a4b24c3aba56475822ad94d268b48fd58b74645 (diff) | |
download | tor-e82e772f2b1a2b2235d3b3bcde85666e09a182b5.tar.gz tor-e82e772f2b1a2b2235d3b3bcde85666e09a182b5.zip |
Using proper functions to create tor_addr_t.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 4a25f99a49..b6bb607fa9 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -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, |