diff options
author | Roger Dingledine <arma@torproject.org> | 2004-08-17 07:09:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-08-17 07:09:02 +0000 |
commit | 2d8a1f208a0c1ad78a376b229df6efdf980186b1 (patch) | |
tree | dffded20a050d33b82a0e33a992a5942bc272b84 /src/or/connection.c | |
parent | 9e5fc55564fdd13454690998ad2d8cb858c7f7fe (diff) | |
download | tor-2d8a1f208a0c1ad78a376b229df6efdf980186b1.tar tor-2d8a1f208a0c1ad78a376b229df6efdf980186b1.tar.gz |
if they ask for exactly one entrynode, don't pick it as an exitnode.
also, fix part of the zero-identity-router-in-stats bug
svn:r2252
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 74da0d6d0..8866ddbb4 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -199,7 +199,7 @@ void connection_about_to_close_connection(connection_t *conn) rep_hist_note_connect_failed(conn->identity_digest, time(NULL)); } else if (0) { // XXX reason == CLOSE_REASON_UNUSED_OR_CONN) { rep_hist_note_disconnect(conn->identity_digest, time(NULL)); - } else { + } else if(conn->identity_digest) { rep_hist_note_connection_died(conn->identity_digest, time(NULL)); } break; |