summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-03-29 16:45:25 -0400
committerRoger Dingledine <arma@torproject.org>2012-03-29 16:45:25 -0400
commit3031def7268ce0cc6f3ab015c0df382295494bb9 (patch)
tree94b15d896e5378195f7d6a34d20da91ab6247fe0 /src/or/dirserv.c
parent5cb82e44d185fff4586ca2b92039e5686b9e753b (diff)
downloadtor-3031def7268ce0cc6f3ab015c0df382295494bb9.tar.gz
tor-3031def7268ce0cc6f3ab015c0df382295494bb9.zip
checking "same addr/port but with nonmatching keys" is obsolete
Specifically, I believe it dates back to when extend cells had address:port but no digest in them. The special edge case is certainly not worth the complexity these days.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 467129c728..dfecbc8a09 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3271,16 +3271,11 @@ dirserv_orconn_tls_done(const char *address,
uint16_t or_port,
const char *digest_rcvd)
{
- routerinfo_t *ri = NULL;
+ routerinfo_t *ri = router_get_mutable_by_digest(digest_rcvd);
time_t now = time(NULL);
tor_assert(address);
tor_assert(digest_rcvd);
- /* FFFF Maybe we should reinstate the code that dumps routers with the same
- * addr/port but with nonmatching keys, but instead of dumping, we should
- * skip testing. */
-
- ri = router_get_mutable_by_digest(digest_rcvd);
if (ri == NULL)
return;