summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-02-24 01:26:09 +0000
committerRoger Dingledine <arma@torproject.org>2007-02-24 01:26:09 +0000
commit33430d3a9e39c141dfcad9260a243fe9da4fc8ed (patch)
tree442d827ce2c2468395417887f6b361cc9ac86ce1 /src/or/connection_or.c
parent9946bb7fbd85eb27a7a1e8ded7bac2881e1da4bf (diff)
downloadtor-33430d3a9e39c141dfcad9260a243fe9da4fc8ed.tar.gz
tor-33430d3a9e39c141dfcad9260a243fe9da4fc8ed.zip
bugfix on r9568: we were throwing around an uninitialized
nickname array, and only treating a server as reachable if the array magically has the right nickname in it. this was causing the authorities to label only themselves as running, and clients were "mysteriously" failing. svn:r9628
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index bd1554be5b..34c890b5ae 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -591,7 +591,6 @@ connection_or_check_valid_handshake(or_connection_t *conn, int started_here,
char *digest_rcvd)
{
crypto_pk_env_t *identity_rcvd=NULL;
- char nickname[MAX_NICKNAME_LEN+1];
or_options_t *options = get_options();
int severity = server_mode(options) ? LOG_PROTOCOL_WARN : LOG_WARN;
const char *safe_address =
@@ -668,10 +667,10 @@ connection_or_check_valid_handshake(or_connection_t *conn, int started_here,
}
if (authdir_mode(options)) {
/* We initiated this connection to address:port. Drop all routers
- * with the same address:port and a different key or nickname.
+ * with the same address:port and a different key.
*/
dirserv_orconn_tls_done(conn->_base.address, conn->_base.port,
- digest_rcvd, nickname, as_advertised);
+ digest_rcvd, as_advertised);
}
if (!as_advertised)
return -1;