diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-15 12:04:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-15 12:04:56 -0400 |
commit | 74262f157178071ad1bce8e70aae79dc01f3ba5d (patch) | |
tree | b1101d4cf3fed95575c9cfc6e3af4452c6d2a8fe /src/or/channel.c | |
parent | 4ab1012b0f5c328f9b70146867e9a2628d06c072 (diff) | |
parent | c5269a59b011c8e961c7e88185b84e78af33d904 (diff) | |
download | tor-74262f157178071ad1bce8e70aae79dc01f3ba5d.tar.gz tor-74262f157178071ad1bce8e70aae79dc01f3ba5d.zip |
Merge branch 'bug5040_4773_rebase_3'
Diffstat (limited to 'src/or/channel.c')
-rw-r--r-- | src/or/channel.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/channel.c b/src/or/channel.c index 05f269b8fa..48bbf7902a 100644 --- a/src/or/channel.c +++ b/src/or/channel.c @@ -2379,8 +2379,14 @@ channel_do_open_actions(channel_t *chan) /* only report it to the geoip module if it's not a known router */ if (!router_get_by_id_digest(chan->identity_digest)) { if (channel_get_addr_if_possible(chan, &remote_addr)) { - geoip_note_client_seen(GEOIP_CLIENT_CONNECT, &remote_addr, + char *transport_name = NULL; + if (chan->get_transport_name(chan, &transport_name) < 0) + transport_name = NULL; + + geoip_note_client_seen(GEOIP_CLIENT_CONNECT, + &remote_addr, transport_name, now); + tor_free(transport_name); } /* Otherwise the underlying transport can't tell us this, so skip it */ } |