[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] make explicit that "no socks policy" means "accept"



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	connection_edge.c 
Log Message:
make explicit that 'no socks policy' means 'accept'


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.201
retrieving revision 1.202
diff -u -d -r1.201 -r1.202
--- connection_edge.c	5 Aug 2004 00:39:23 -0000	1.201
+++ connection_edge.c	6 Aug 2004 10:12:55 -0000	1.202
@@ -985,6 +985,8 @@
   if (options.SocksPolicy && !socks_policy)
     parse_socks_policy();
 
+  if(!socks_policy)
+    return 1;
   a = router_compare_addr_to_exit_policy(addr, 1, socks_policy);
   if (a==-1)
     return 0;