diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-10-14 17:49:51 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-10-14 17:49:51 +0200 |
commit | 4556f2e7c80274932019a239232235ce571c98f8 (patch) | |
tree | 28ce37b8f5646490ab73d663bf8f884ad185d3d5 /src/or/connection_or.c | |
parent | 376939c9acfe64b1722ef184fda0ef0235e14a7d (diff) | |
download | tor-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.c | 4 |
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); |