summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-07 09:01:56 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-07 09:01:56 +0000
commitfb4b804c2c244a5575f6ce2d09eb2497ab0250e1 (patch)
treecf92d58db105d0496ec04f5a02660daf28d001dc /src/or/routerparse.c
parent44ff309c2685f0adfa0229210cdd58d43b1ceafe (diff)
downloadtor-fb4b804c2c244a5575f6ce2d09eb2497ab0250e1.tar.gz
tor-fb4b804c2c244a5575f6ce2d09eb2497ab0250e1.zip
Don't warn about being unverified if you're not in the running-routers
list at all. svn:r2193
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 01641625b4..ace10b24e0 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -393,7 +393,7 @@ router_parse_routerlist_from_directory(const char *str,
for (i=0; i<tok->n_args; ++i) {
smartlist_add(good_nickname_list, tok->args[i]);
}
- tok->n_args = 0; /* Don't free the strings in good_nickname_lst yet. */
+ tok->n_args = 0; /* Don't free the strings in good_nickname_list yet. */
/* Read the router list from s, advancing s up past the end of the last
* router. */
@@ -416,9 +416,9 @@ router_parse_routerlist_from_directory(const char *str,
static int have_warned_about_unverified_status = 0;
routerinfo_t *me = router_get_my_routerinfo();
if(me) {
- router_update_status_from_smartlist(me, published_on,
- good_nickname_list);
- if(me->is_verified == 0 && !have_warned_about_unverified_status) {
+ if(router_update_status_from_smartlist(me, published_on,
+ good_nickname_list)==1 &&
+ me->is_verified == 0 && !have_warned_about_unverified_status) {
log_fn(LOG_WARN,"Dirserver %s lists your server as unverified. Please consider sending your identity fingerprint to the tor-ops.", dirnickname);
have_warned_about_unverified_status = 1;
}