From fbb0c6eec342e7964c10c1cb7ece8497b6ed940b Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 16 Apr 2008 00:07:18 +0000 Subject: [PATCH] Fix a dumb bug that was preventing us from knowing that we should preemptively build circuits to handle expected directory requests. Fixes bug 660. Bugfix on 0.1.2.x. svn:r14375 --- ChangeLog | 3 +++ src/or/directory.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fb1fd5d79a..7651d042de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,9 @@ Changes in version 0.2.0.24-rc - 2008-04-0? leaks. Bugfix on 0.2.0.19-alpha. - Free static hashtables for policy maps and for TLS connections on shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x. + - Fix a dumb bug that was preventing us from knowing that we should + preemptively build circuits to handle expected directory requests. + Fixes bug 660. Bugfix on 0.1.2.x. Changes in version 0.2.0.23-rc - 2008-03-24 diff --git a/src/or/directory.c b/src/or/directory.c index aee76a5b71..dd342bd92b 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -719,7 +719,7 @@ directory_initiate_command(const char *address, uint32_t addr, if (anonymized_connection && use_begindir) rep_hist_note_used_internal(time(NULL), 0, 1); else if (anonymized_connection && !use_begindir) - rep_hist_note_used_port(time(NULL), conn->_base.port); + rep_hist_note_used_port(conn->_base.port, time(NULL)); /* make an AP connection * populate it and add it at the right state