mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
make calls to address_is_in_virtual_range more bullet-proof.
might fix the assert failure i just got. svn:r3906
This commit is contained in:
parent
80901fde69
commit
0e26973c02
@ -474,7 +474,7 @@ addressmap_virtaddress_ent_free(void *_ent) {
|
|||||||
static void
|
static void
|
||||||
addressmap_virtaddress_remove(const char *addr, addressmap_entry_t *ent)
|
addressmap_virtaddress_remove(const char *addr, addressmap_entry_t *ent)
|
||||||
{
|
{
|
||||||
if (ent && address_is_in_virtual_range(ent->new_address)) {
|
if (ent && ent->new_address && address_is_in_virtual_range(ent->new_address)) {
|
||||||
virtaddress_entry_t *ve =
|
virtaddress_entry_t *ve =
|
||||||
strmap_get(virtaddress_reversemap, ent->new_address);
|
strmap_get(virtaddress_reversemap, ent->new_address);
|
||||||
/*log_fn(LOG_NOTICE,"remove reverse mapping for %s",ent->new_address);*/
|
/*log_fn(LOG_NOTICE,"remove reverse mapping for %s",ent->new_address);*/
|
||||||
|
Loading…
Reference in New Issue
Block a user