summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-27 17:26:40 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-27 17:26:40 -0400
commit26c022ecbcbf4fb4541c4103b5fc94831d50d92b (patch)
treee673aeb2f86378b32abcf6f5dbd8cc4eb866d222 /src/or/connection_edge.c
parentd4a61c76a1f4e21671cb93c1d5df1e31f9adc117 (diff)
parent7f85509a59b88173ac6060cd5925e28415f016b4 (diff)
downloadtor-26c022ecbcbf4fb4541c4103b5fc94831d50d92b.tar.gz
tor-26c022ecbcbf4fb4541c4103b5fc94831d50d92b.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 29ab6c5b19..4e45cbeff6 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -799,8 +799,8 @@ clear_trackexithost_mappings(const char *exitname)
tor_strlower(suffix);
STRMAP_FOREACH_MODIFY(addressmap, address, addressmap_entry_t *, ent) {
- /* XXXX022 HEY! Shouldn't this look at ent->new_address? */
- if (ent->source == ADDRMAPSRC_TRACKEXIT && !strcmpend(address, suffix)) {
+ if (ent->source == ADDRMAPSRC_TRACKEXIT &&
+ !strcmpend(ent->new_address, suffix)) {
addressmap_ent_remove(address, ent);
MAP_DEL_CURRENT(address);
}