summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-03-29 16:37:50 -0400
committerRoger Dingledine <arma@torproject.org>2012-03-29 16:37:50 -0400
commit5cb82e44d185fff4586ca2b92039e5686b9e753b (patch)
tree32f5c5759511ec9b57529fa1be3dd44e18deb833 /src/or/dirserv.c
parent20eb38a588313bba2fd35c32dc0e1c63ef4b8497 (diff)
downloadtor-5cb82e44d185fff4586ca2b92039e5686b9e753b.tar.gz
tor-5cb82e44d185fff4586ca2b92039e5686b9e753b.zip
simplify further
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 01a083369e..467129c728 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3264,14 +3264,12 @@ dirserv_get_routerdescs(smartlist_t *descs_out, const char *key,
* router listening at <b>address</b>:<b>or_port</b>, and has yielded
* a certificate with digest <b>digest_rcvd</b>.
*
- * If as_advertised is 1, then inform the reachability checker that we
- * could get to this guy.
+ * Inform the reachability checker that we could get to this guy.
*/
void
dirserv_orconn_tls_done(const char *address,
uint16_t or_port,
- const char *digest_rcvd,
- int as_advertised)
+ const char *digest_rcvd)
{
routerinfo_t *ri = NULL;
time_t now = time(NULL);
@@ -3282,9 +3280,6 @@ dirserv_orconn_tls_done(const char *address,
* addr/port but with nonmatching keys, but instead of dumping, we should
* skip testing. */
- if (!as_advertised)
- return;
-
ri = router_get_mutable_by_digest(digest_rcvd);
if (ri == NULL)
return;