aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-07-01 23:13:04 +0000
committerNick Mathewson <nickm@torproject.org>2004-07-01 23:13:04 +0000
commitcbab134bd98984a7758ac8cd80daa4a9bf16a406 (patch)
tree6686c57309858b5c46d32f4e485fbc8e96e66d05 /src/or/connection_or.c
parente1ba0c466341a883394d446c0ad81855c1076b9d (diff)
downloadtor-cbab134bd98984a7758ac8cd80daa4a9bf16a406.tar
tor-cbab134bd98984a7758ac8cd80daa4a9bf16a406.tar.gz
Switch most uses of *_by_addr_port to *_by_identity_digest
svn:r1997
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index abd8476f7..ea428b6f5 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -160,7 +160,8 @@ connection_t *connection_or_connect(routerinfo_t *router) {
/* this function should never be called if we're already connected to router, but */
/* check first to be sure */
- conn = connection_exact_get_by_addr_port(router->addr,router->or_port);
+ conn = connection_get_by_identity_digest(router->identity_digest,
+ CONN_TYPE_OR);
if(conn)
return conn;
@@ -304,7 +305,7 @@ connection_tls_finish_handshake(connection_t *conn) {
return -1;
}
} else {
- if((c=connection_exact_get_by_addr_port(router->addr,router->or_port))) {
+ if((c=connection_get_by_identity_digest(router->identity_digest, CONN_TYPE_OR))) {
log_fn(LOG_INFO,"Router %s is already connected on fd %d. Dropping fd %d.", router->nickname, c->s, conn->s);
return -1;
}