[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Make the Exit tag in status documents actually work in head...
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv4124
Modified Files:
policies.c
Log Message:
Make the Exit tag in status documents actually work in head too
Index: policies.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/policies.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -d -r1.2 -r1.3
--- policies.c 8 Apr 2006 05:43:52 -0000 1.2
+++ policies.c 12 Jun 2006 22:03:25 -0000 1.3
@@ -608,7 +608,6 @@ int
exit_policy_is_general_exit(addr_policy_t *policy)
{
static const int ports[] = { 80, 443, 6667 };
- int n_allowed = 0;
int i;
for (i = 0; i < 3; ++i) {
struct addr_policy_t *p = policy;
@@ -621,11 +620,10 @@ exit_policy_is_general_exit(addr_policy_
continue; /* 127.x */
/* We have a match that is at least a /8. */
if (p->policy_type == ADDR_POLICY_ACCEPT)
- ++n_allowed;
- break;
+ return 1;
}
}
- return n_allowed > 0;
+ return 0;
}
/** Release all storage held by <b>p</b> */