summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-10-14 17:49:51 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-10-14 17:49:51 +0200
commit4556f2e7c80274932019a239232235ce571c98f8 (patch)
tree28ce37b8f5646490ab73d663bf8f884ad185d3d5 /src/or/connection_or.c
parent376939c9acfe64b1722ef184fda0ef0235e14a7d (diff)
downloadtor-4556f2e7c80274932019a239232235ce571c98f8.tar.gz
tor-4556f2e7c80274932019a239232235ce571c98f8.zip
Rename router_get_by_digest()
We now call the function router_get_by_id_digest() to make clear that we're talking about the identity digest here, not descriptor digest.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index ec76b88ee0..9f979f086e 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -360,7 +360,7 @@ connection_or_digest_is_known_relay(const char *id_digest)
{
if (router_get_consensus_status_by_id(id_digest))
return 1; /* It's in the consensus: "yes" */
- if (router_get_by_digest(id_digest))
+ if (router_get_by_id_digest(id_digest))
return 1; /* Not in the consensus, but we have a descriptor for
* it. Probably it was in a recent consensus. "Yes". */
return 0;
@@ -1342,7 +1342,7 @@ connection_or_set_state_open(or_connection_t *conn)
router_set_status(conn->identity_digest, 1);
} else {
/* only report it to the geoip module if it's not a known router */
- if (!router_get_by_digest(conn->identity_digest)) {
+ if (!router_get_by_id_digest(conn->identity_digest)) {
if (tor_addr_family(&TO_CONN(conn)->addr) == AF_INET) {
/*XXXX IP6 support ipv6 geoip.*/
uint32_t a = tor_addr_to_ipv4h(&TO_CONN(conn)->addr);