[or-cvs] r18924: {tor} Make directory usage recording work again. Fixing bug introd (in tor/trunk: . src/or)

kloesing at seul.org kloesing at seul.org
Wed Mar 11 22:08:38 UTC 2009


Author: kloesing
Date: 2009-03-11 18:08:37 -0400 (Wed, 11 Mar 2009)
New Revision: 18924

Modified:
   tor/trunk/ChangeLog
   tor/trunk/src/or/directory.c
Log:
Make directory usage recording work again. Fixing bug introduced in r17009.


Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2009-03-11 21:25:58 UTC (rev 18923)
+++ tor/trunk/ChangeLog	2009-03-11 22:08:37 UTC (rev 18924)
@@ -6,6 +6,7 @@
     - In tor-resolve, when the Tor client to use is specified by
       <hostname>:<port>, actually use the specified port rather than
       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
+    - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
 
 
 Changes in version 0.2.1.13-alpha - 2009-03-09

Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c	2009-03-11 21:25:58 UTC (rev 18923)
+++ tor/trunk/src/or/directory.c	2009-03-11 22:08:37 UTC (rev 18924)
@@ -2581,7 +2581,7 @@
       geoip_client_action_t act =
         is_v3 ? GEOIP_CLIENT_NETWORKSTATUS : GEOIP_CLIENT_NETWORKSTATUS_V2;
       struct in_addr in;
-      if (!tor_inet_aton((TO_CONN(conn))->address, &in))
+      if (tor_inet_aton((TO_CONN(conn))->address, &in))
         geoip_note_client_seen(act, ntohl(in.s_addr), time(NULL));
     }
 #endif



More information about the tor-commits mailing list