summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-07-22 06:03:53 +0000
committerRoger Dingledine <arma@torproject.org>2004-07-22 06:03:53 +0000
commitb48cdc9d4035217b2d4d160778092e104fcd91f9 (patch)
tree47dcbc2e9df8470a4c5afff9d05ebc63e03d09ac /src/or/routerlist.c
parent38d8e36919e6ae699a0b76c355e5a171b837bbf4 (diff)
downloadtor-b48cdc9d4035217b2d4d160778092e104fcd91f9.tar.gz
tor-b48cdc9d4035217b2d4d160778092e104fcd91f9.zip
populate router_get_my_routerinfo()->is_verified
svn:r2097
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 7f8e466416..bb64504930 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -794,7 +794,7 @@ void routerlist_update_from_runningrouters(routerlist_t *list,
running_routers_t *rr)
{
int n_routers, i;
- routerinfo_t *router;
+ routerinfo_t *router, *me = router_get_my_routerinfo();
if (!list)
return;
if (list->published_on >= rr->published_on)
@@ -802,6 +802,10 @@ void routerlist_update_from_runningrouters(routerlist_t *list,
if (list->running_routers_updated_on >= rr->published_on)
return;
+ if(me) /* learn if the dirservers think I'm verified */
+ router_update_status_from_smartlist(me,
+ rr->published_on,
+ rr->running_routers);
n_routers = smartlist_len(list->routers);
for (i=0; i<n_routers; ++i) {
router = smartlist_get(list->routers, i);