mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
This commit is contained in:
commit
26c022ecbc
5
changes/clear_trackexithost
Normal file
5
changes/clear_trackexithost
Normal file
@ -0,0 +1,5 @@
|
||||
o Minor bugfixes:
|
||||
- Fix a bug in the code where we could keep trying to use a
|
||||
TrackHostExits-based mapping after we failed to reach the intended
|
||||
destination node. Fixes bug 2999. Bugfix on 0.2.0.20-rc.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user