Make directory usage recording work again. Fixing bug introduced in r17009.

svn:r18924
This commit is contained in:
Karsten Loesing 2009-03-11 22:08:37 +00:00
parent 4e094ddc4d
commit 309080b6aa
2 changed files with 2 additions and 1 deletions

View File

@ -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 - In tor-resolve, when the Tor client to use is specified by
<hostname>:<port>, actually use the specified port rather than <hostname>:<port>, actually use the specified port rather than
defaulting to 9050. Bugfix on 0.2.1.6-alpha. 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 Changes in version 0.2.1.13-alpha - 2009-03-09

View File

@ -2581,7 +2581,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
geoip_client_action_t act = geoip_client_action_t act =
is_v3 ? GEOIP_CLIENT_NETWORKSTATUS : GEOIP_CLIENT_NETWORKSTATUS_V2; is_v3 ? GEOIP_CLIENT_NETWORKSTATUS : GEOIP_CLIENT_NETWORKSTATUS_V2;
struct in_addr in; 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)); geoip_note_client_seen(act, ntohl(in.s_addr), time(NULL));
} }
#endif #endif