mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Another case of the same.
svn:r1099
This commit is contained in:
parent
bab6c0a332
commit
72568d2620
@ -426,10 +426,13 @@ int router_compare_addr_to_exit_policy(uint32_t addr, uint16_t port,
|
||||
}
|
||||
} else {
|
||||
/* Address is known */
|
||||
if ( (addr & tmpe->msk) == (tmpe->addr & tmpe->msk) &&
|
||||
(port >= tmpe->prt_min && port <= tmpe->prt_max) ) {
|
||||
/* Exact match for the policy */
|
||||
match = 1;
|
||||
if ((addr & tmpe->msk) == (tmpe->addr & tmpe->msk)) {
|
||||
if (port >= tmpe->prt_min && port <= tmpe->prt_max) {
|
||||
/* Exact match for the policy */
|
||||
match = 1;
|
||||
} else if (!port) {
|
||||
maybe = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (maybe) {
|
||||
|
Loading…
Reference in New Issue
Block a user