diff options
author | Linus Nordberg <linus@torproject.org> | 2012-08-31 23:02:19 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-04 12:03:42 -0400 |
commit | 585ef0697811e7d62ab17142c8eed2f9372cd074 (patch) | |
tree | 7440ac60a7cf721561c4387951ee18b71f1a1239 /src/or/dirvote.c | |
parent | 68901da5a1dcfb210f7e8210af0b63c6161f9b63 (diff) | |
download | tor-585ef0697811e7d62ab17142c8eed2f9372cd074.tar.gz tor-585ef0697811e7d62ab17142c8eed2f9372cd074.zip |
Add tor_addr_port_new().
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r-- | src/or/dirvote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index e6601cffb7..2c9e56d7af 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -479,8 +479,8 @@ compute_routerstatus_consensus(smartlist_t *votes, int consensus_method, if (compare_vote_rs(most, rs) == 0 && !tor_addr_is_null(&rs->status.ipv6_addr) && rs->status.ipv6_orport) { - smartlist_add(alt_orports, tor_addr_port_alloc(&rs->status.ipv6_addr, - rs->status.ipv6_orport)); + smartlist_add(alt_orports, tor_addr_port_new(&rs->status.ipv6_addr, + rs->status.ipv6_orport)); log_debug(LD_DIR, "picking %s:%d (%s) for voting on \"a\" lines", /* FIXME: remove */ fmt_and_decorate_addr(&rs->status.ipv6_addr), rs->status.ipv6_orport, rs->status.nickname); |