[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make calls to address_is_in_virtual_range more bullet-proof.
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] make calls to address_is_in_virtual_range more bullet-proof.
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sun, 27 Mar 2005 20:56:14 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 27 Mar 2005 20:56:33 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
connection_edge.c
Log Message:
make calls to address_is_in_virtual_range more bullet-proof.
might fix the assert failure i just got.
Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.310
retrieving revision 1.311
diff -u -d -r1.310 -r1.311
--- connection_edge.c 27 Mar 2005 06:37:56 -0000 1.310
+++ connection_edge.c 28 Mar 2005 01:56:12 -0000 1.311
@@ -474,7 +474,7 @@
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);*/