summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-19 23:18:30 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-19 23:18:30 +0000
commit5ebb949c9f8c66c7c38eda65226677acbe148193 (patch)
treec73f95fc965df6b2e635d84dbcb89739adcd0bb3 /src/or/router.c
parent2d4950c8373676b9b5ae0a3c8013e780b5c18e19 (diff)
downloadtor-5ebb949c9f8c66c7c38eda65226677acbe148193.tar.gz
tor-5ebb949c9f8c66c7c38eda65226677acbe148193.zip
Stop searching routerlist for routers with the same identity as other routers (on router insert): we already have a map for that. (We need to add an index field to routerinfo_t so we can figure out which point in the routerlist to replace.) Also, add a comment to routerlist.c; arma, please advise?
svn:r8432
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index a5d9b72533..73de2ddc2b 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -805,6 +805,7 @@ router_rebuild_descriptor(int force)
}
ri = tor_malloc_zero(sizeof(routerinfo_t));
+ ri->routerlist_index = -1;
ri->address = tor_dup_addr(addr);
ri->nickname = tor_strdup(options->Nickname);
ri->addr = addr;