]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make directory usage recording work again. Fixing bug introduced in r17009.
authorKarsten Loesing <karsten.loesing@gmx.net>
Wed, 11 Mar 2009 22:08:37 +0000 (22:08 +0000)
committerKarsten Loesing <karsten.loesing@gmx.net>
Wed, 11 Mar 2009 22:08:37 +0000 (22:08 +0000)
svn:r18924

ChangeLog
src/or/directory.c

index 91ab990814c0bda665bfaad7dbfd59653a5b6f4a..e9e5095ead37d4c0b36fd4b82d9b1614200fa038 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ Changes in version 0.2.1.14-??? - 2009-03-??
     - 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
index efccb1ef42432704ab26a5509243b0e3ca25287f..e4a51b4b5476b50cc456e8a59f84bb731f0ae4ef 100644 (file)
@@ -2581,7 +2581,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
       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