diff options
author | Roger Dingledine <arma@torproject.org> | 2006-04-04 03:25:36 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-04-04 03:25:36 +0000 |
commit | 0825f61102242af15d99f3083e45db24471b8260 (patch) | |
tree | b0d1dd929596ecdfd31eae11f701a46916a31495 | |
parent | 453062b028be68acbfb47475d925dcdbd6c5f11f (diff) | |
download | tor-0825f61102242af15d99f3083e45db24471b8260.tar.gz tor-0825f61102242af15d99f3083e45db24471b8260.zip |
fix crash bug reported in flyspray 279.
svn:r6312
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 69140c09aa..2cb3dd2e0f 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -967,7 +967,7 @@ router_get_by_nickname(const char *nickname, int warn_if_unnamed) continue; rs = router_get_combined_status_by_digest( router->cache_info.identity_digest); - if (!rs->name_lookup_warned) { + if (rs && !rs->name_lookup_warned) { rs->name_lookup_warned = 1; any_unwarned = 1; } @@ -984,7 +984,7 @@ router_get_by_nickname(const char *nickname, int warn_if_unnamed) log_warn(LD_CONFIG, "There are multiple matches for the nickname \"%s\"," " but none is listed as named by the directory authories. " - "Choosing one arbitrarily. If you meant one in particular, " + "Choosing one arbitrarily. If you meant one in particular, " "you should say %s.", nickname, alternatives); tor_free(alternatives); } |