diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-27 11:52:15 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-27 11:52:15 +0000 |
commit | 9b5432214d4c232da7c26ae427ed5186e3ad07b0 (patch) | |
tree | 21b25710b200d49fa7b9789693ac558cacb01457 /src/or/router.c | |
parent | 452563e157b56e49433a49225975cc2b03c54acf (diff) | |
download | tor-9b5432214d4c232da7c26ae427ed5186e3ad07b0.tar.gz tor-9b5432214d4c232da7c26ae427ed5186e3ad07b0.zip |
but only do the rapid reachability testing if we're hoping to be a server.
svn:r3902
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index 6927f0e9bd..c7f0b46578 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -392,6 +392,10 @@ int check_whether_ports_reachable(void) { void consider_testing_reachability(void) { routerinfo_t *me = router_get_my_routerinfo(); + if (!me) { + log_fn(LOG_WARN,"Bug: router_get_my_routerinfo() did not find my routerinfo?"); + return; + } if (!can_reach_or_port) { circuit_launch_by_router(CIRCUIT_PURPOSE_TESTING, me, 0, 0, 1); |