diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-30 03:01:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-30 03:01:16 +0000 |
commit | 3bd613b44d955f9c8585ce26400b921038d26773 (patch) | |
tree | 20202e5d821197bb28bfeca14f2538df3e62f3ae /src/or/routerlist.c | |
parent | 6b49a93bd5d5446799ba77daa82640e87321af26 (diff) | |
download | tor-3bd613b44d955f9c8585ce26400b921038d26773.tar tor-3bd613b44d955f9c8585ce26400b921038d26773.tar.gz |
Rename connection_get_by_identity_digest to reflect that it is OR-only. Make it use a hashtable instead of a linear search.
svn:r5469
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 0e5ec2aa9..70c28ee6a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1538,7 +1538,7 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg, * make new ones with the new key. */ connection_t *conn; - while ((conn = connection_get_by_identity_digest( + while ((conn = connection_or_get_by_identity_digest( old_router->cache_info.identity_digest))) { // And LD_OR? XXXXNM info(LD_DIR,"Closing conn to router '%s'; there is now a named router with that name.", |