aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-16 07:04:26 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-16 07:04:26 +0000
commitf175aca3a8963ef46c507dc8d8550f96a5ba248a (patch)
tree29ed2266aa3b6b090419a7ab7e9b9b0fb16a7f01 /src/or
parent80b8abf7beeed528e16ae58b44d52f4708a81df1 (diff)
downloadtor-f175aca3a8963ef46c507dc8d8550f96a5ba248a.tar.gz
tor-f175aca3a8963ef46c507dc8d8550f96a5ba248a.zip
and then revert half of r9138
svn:r9140
Diffstat (limited to 'src/or')
-rw-r--r--src/or/router.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/router.c b/src/or/router.c
index daa05d6e74..be86d06b65 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -863,11 +863,9 @@ router_rebuild_descriptor(int force)
SMARTLIST_FOREACH(family, char *, name,
{
routerinfo_t *member;
- if (!strcasecmp(name, options->Nickname)) {
- /* Don't list ourself in our own family; that's redundant */
- tor_free(name);
- continue;
- } else
+ if (!strcasecmp(name, options->Nickname))
+ member = ri;
+ else
member = router_get_by_nickname(name, 1);
if (!member) {
if (!smartlist_string_isin(warned_nonexistent_family, name) &&
@@ -880,6 +878,8 @@ router_rebuild_descriptor(int force)
}
smartlist_add(ri->declared_family, name);
name = NULL;
+ } else if (router_is_me(member)) {
+ /* Don't list ourself in our own family; that's redundant */
} else {
char *fp = tor_malloc(HEX_DIGEST_LEN+2);
fp[0] = '$';