From cbab134bd98984a7758ac8cd80daa4a9bf16a406 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 1 Jul 2004 23:13:04 +0000 Subject: Switch most uses of *_by_addr_port to *_by_identity_digest svn:r1997 --- src/or/connection_or.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/or/connection_or.c') diff --git a/src/or/connection_or.c b/src/or/connection_or.c index abd8476f75..ea428b6f55 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; } -- cgit v1.2.3-54-g00ecf