[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14375: Fix a dumb bug that was preventing us from knowing that we s (in tor/branches/tor-0_2_0-patches: . src/or)



Author: arma
Date: 2008-04-15 20:07:18 -0400 (Tue, 15 Apr 2008)
New Revision: 14375

Modified:
   tor/branches/tor-0_2_0-patches/ChangeLog
   tor/branches/tor-0_2_0-patches/src/or/directory.c
Log:
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.


Modified: tor/branches/tor-0_2_0-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_2_0-patches/ChangeLog	2008-04-15 23:06:31 UTC (rev 14374)
+++ tor/branches/tor-0_2_0-patches/ChangeLog	2008-04-16 00:07:18 UTC (rev 14375)
@@ -18,6 +18,9 @@
       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

Modified: tor/branches/tor-0_2_0-patches/src/or/directory.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/directory.c	2008-04-15 23:06:31 UTC (rev 14374)
+++ tor/branches/tor-0_2_0-patches/src/or/directory.c	2008-04-16 00:07:18 UTC (rev 14375)
@@ -719,7 +719,7 @@
     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