diff options
author | Roger Dingledine <arma@torproject.org> | 2005-03-28 01:56:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-03-28 01:56:12 +0000 |
commit | 0e26973c02314d3619050292fd40036f8a21f9e0 (patch) | |
tree | 2f44aec7d4034a1d12f81a8b89f2f108fc179a45 /src/or/connection_edge.c | |
parent | 80901fde6989cc564163ce5877c0c4e5a2513e9d (diff) | |
download | tor-0e26973c02314d3619050292fd40036f8a21f9e0.tar.gz tor-0e26973c02314d3619050292fd40036f8a21f9e0.zip |
make calls to address_is_in_virtual_range more bullet-proof.
might fix the assert failure i just got.
svn:r3906
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 2636ac0a5d..0a1db8eac5 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -474,7 +474,7 @@ addressmap_virtaddress_ent_free(void *_ent) { static void 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 = strmap_get(virtaddress_reversemap, ent->new_address); /*log_fn(LOG_NOTICE,"remove reverse mapping for %s",ent->new_address);*/ |