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
This commit is contained in:
Roger Dingledine 2004-12-17 23:17:00 +00:00
parent 1a946d0efd
commit 308ffa8a05

View File

@ -216,7 +216,7 @@ void circuit_dump_by_conn(connection_t *conn, int severity) {
circ->n_circ_id, circ->p_circ_id); 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_addr == conn->addr &&
circ->n_port == conn->port && circ->n_port == conn->port &&
!memcmp(conn->identity_digest, circ->n_conn_id_digest, DIGEST_LEN)) { !memcmp(conn->identity_digest, circ->n_conn_id_digest, DIGEST_LEN)) {