diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-06-30 16:48:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-06-30 16:48:36 +0000 |
commit | 29818d5b6bccce2d4e6678cce82ebdefa47883bb (patch) | |
tree | 30c8ee32580f44432545d4a6fdcb767501c5ed9b /src | |
parent | b1e9adf05612959b20da5f8078a7e2edf27b4e74 (diff) | |
download | tor-29818d5b6bccce2d4e6678cce82ebdefa47883bb.tar tor-29818d5b6bccce2d4e6678cce82ebdefa47883bb.tar.gz |
Use arguments to routerlist_update_from_runningrouters correctly
svn:r1992
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 8dd51a8ce..566ddb74f 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -643,11 +643,11 @@ void routerlist_update_from_runningrouters(routerlist_t *list, int n_routers, n_names, i, j, running; routerinfo_t *router; const char *name; - if (!routerlist) + if (!list) return; - if (routerlist->published_on >= rr->published_on) + if (list->published_on >= rr->published_on) return; - if (routerlist->running_routers_updated_on >= rr->published_on) + if (list->running_routers_updated_on >= rr->published_on) return; n_routers = smartlist_len(list->routers); @@ -664,7 +664,7 @@ void routerlist_update_from_runningrouters(routerlist_t *list, } router->is_running = 1; /* arma: is this correct? */ } - routerlist->running_routers_updated_on = rr->published_on; + list->running_routers_updated_on = rr->published_on; /* XXXX008 Should there also be a list of which are down, so that we * don't mark merely unknown routers as down? */ } |