mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
bugfix in exit_policy_is_general_exit() that weasel found.
this time for sure! svn:r6617
This commit is contained in:
parent
23e2c6a7dd
commit
88dadc917c
@ -620,8 +620,10 @@ exit_policy_is_general_exit(addr_policy_t *policy)
|
||||
if ((p->addr & 0xff000000ul) == 0x7f000000ul)
|
||||
continue; /* 127.x */
|
||||
/* We have a match that is at least a /8. */
|
||||
if (p->policy_type == ADDR_POLICY_ACCEPT)
|
||||
if (p->policy_type == ADDR_POLICY_ACCEPT) {
|
||||
++n_allowed;
|
||||
break; /* stop considering this port */
|
||||
}
|
||||
}
|
||||
}
|
||||
return n_allowed >= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user