summaryrefslogtreecommitdiff
path: root/src/or/routerparse.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/routerparse.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/routerparse.c')
-rw-r--r--src/or/routerparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index ce564a5115..12ff72d38d 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -752,6 +752,7 @@ router_parse_entry_from_string(const char *s, const char *end,
}
router = tor_malloc_zero(sizeof(routerinfo_t));
+ router->routerlist_index = -1;
if (cache_copy)
router->cache_info.signed_descriptor_body = tor_strndup(s, end-s);
router->cache_info.signed_descriptor_len = end-s;