diff options
author | teor <teor@riseup.net> | 2020-05-07 20:25:36 +1000 |
---|---|---|
committer | teor <teor@riseup.net> | 2020-05-07 20:25:36 +1000 |
commit | c76f310fe724c3d93416b4e23a219feda8e6f217 (patch) | |
tree | b08f01d13edf6480e258f9c9a6c08045d2b9aa4b /src/feature/relay/selftest.c | |
parent | 24099680f19abe67f4b362d49c66e68c971fca0e (diff) | |
download | tor-c76f310fe724c3d93416b4e23a219feda8e6f217.tar.gz tor-c76f310fe724c3d93416b4e23a219feda8e6f217.zip |
routerinfo: Make router_get_orport() return an error status
Part of 33222.
Diffstat (limited to 'src/feature/relay/selftest.c')
-rw-r--r-- | src/feature/relay/selftest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index 4093218fbb..875bf7a9f8 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -163,8 +163,7 @@ extend_info_from_router(const routerinfo_t *r, int family) else ed_id_key = NULL; - router_get_orport(r, &ap, family); - if (!tor_addr_port_is_valid_ap(&ap, 0)) { + if (router_get_orport(r, &ap, family) < 0) { /* We don't have an ORPort for the requested family. */ return NULL; } |