From 20422cde2b71c079e88dcf3bfc2b1f1b4bc23c1c Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Fri, 5 Feb 2010 13:40:31 +0100 Subject: 0/8 doesn't count as a /8 subnet towards an Exit flag --- src/or/policies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/policies.c') diff --git a/src/or/policies.c b/src/or/policies.c index eb8b5fd462..3c060aeb73 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -883,7 +883,7 @@ exit_policy_is_general_exit_helper(smartlist_t *policy, int port) if (subnet_status[j] != 0) continue; /* We already reject some part of this /8 */ tor_addr_from_ipv4h(&addr, j<<24); - if (tor_addr_is_internal(&addr, 1)) /* 1 because * = 0.0.0.0 */ + if (tor_addr_is_internal(&addr, 0)) continue; /* Local or non-routable addresses */ if (tor_addr_compare_masked(&addr, &p->addr, p->maskbits, CMP_EXACT) == 0) { -- cgit v1.2.3-54-g00ecf