[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.



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);*/