aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-16 22:56:46 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-16 22:56:46 +0000
commit7c3ab346f65f1f26ea32193ec5989d6bee003e62 (patch)
tree7863ef194ff7b80a8621ac542137e55455157c42 /src/or/circuitbuild.c
parente9e9a258815db3c50c4581d7a1a9d27a45fb058b (diff)
downloadtor-7c3ab346f65f1f26ea32193ec5989d6bee003e62.tar
tor-7c3ab346f65f1f26ea32193ec5989d6bee003e62.tar.gz
various tweaks and fixes
svn:r2548
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index c5d16d270..3aa7e797b 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -979,11 +979,9 @@ static routerinfo_t *choose_good_exit_server(uint8_t purpose, routerlist_t *dir)
r = router_choose_random_node(options.RendNodes, options.RendExcludeNodes,
NULL, 0, 1, options._AllowUnverified & ALLOW_UNVERIFIED_RENDEZVOUS, 0);
return r;
- default:
- log_fn(LOG_WARN,"unhandled purpose %d", purpose);
- tor_assert(0);
}
- return NULL; /* never reached */
+ log_fn(LOG_WARN,"Unhandled purpose %d", purpose);
+ return NULL;
}
/** Allocate a cpath_build_state_t, populate it based on