mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
maybe resolve an assert trigger i just got:
connection_edge.c:643 address_is_in_virtual_range: Assertion addr failed; aborting. nick, what do you think? svn:r3825
This commit is contained in:
parent
e28b8aaa40
commit
a523439cbc
@ -551,12 +551,12 @@ void addressmap_register(const char *address, char *new_address, time_t expires)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ent) { /* we'll replace it */
|
if (ent && ent->new_address) { /* we'll replace it */
|
||||||
if (address_is_in_virtual_range(ent->new_address)) {
|
if (address_is_in_virtual_range(ent->new_address)) {
|
||||||
addressmap_virtaddress_remove(address, ent);
|
addressmap_virtaddress_remove(address, ent);
|
||||||
}
|
}
|
||||||
tor_free(ent->new_address);
|
tor_free(ent->new_address);
|
||||||
} else { /* make a new one and register it */
|
} else if (!ent) { /* make a new one and register it */
|
||||||
ent = tor_malloc_zero(sizeof(addressmap_entry_t));
|
ent = tor_malloc_zero(sizeof(addressmap_entry_t));
|
||||||
strmap_set(addressmap, address, ent);
|
strmap_set(addressmap, address, ent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user