aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-17 23:17:00 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-17 23:17:00 +0000
commit308ffa8a050c7f784040899b62cedcdb490aa455 (patch)
tree13113ca105db6cbb3ade348477c5d5c023d2b3a4 /src/or/circuitbuild.c
parent1a946d0efd32d10d0ed9f661e72acaf8de1d15ac (diff)
downloadtor-308ffa8a050c7f784040899b62cedcdb490aa455.tar
tor-308ffa8a050c7f784040899b62cedcdb490aa455.tar.gz
When listing circuits that are pending on an opening OR connection,
if we're an OR we were listing circuits that *end* at us as being pending on every listener, dns/cpu worker, etc. Stop that. svn:r3171
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 3f5fe5922..103b5888b 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -216,7 +216,7 @@ void circuit_dump_by_conn(connection_t *conn, int severity) {
circ->n_circ_id, circ->p_circ_id);
}
}
- if (!circ->n_conn &&
+ if (!circ->n_conn && circ->n_addr && circ->n_port &&
circ->n_addr == conn->addr &&
circ->n_port == conn->port &&
!memcmp(conn->identity_digest, circ->n_conn_id_digest, DIGEST_LEN)) {