mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
bugfix in config_cmp_addr_policies() -- we were treating a pair
of exit policies if they were equal even if one said accept and the other said reject. svn:r5970
This commit is contained in:
parent
fdf18fbbdb
commit
6c093a17a9
1 changed files with 2 additions and 0 deletions
|
@ -3111,6 +3111,8 @@ config_cmp_addr_policies(addr_policy_t *a, addr_policy_t *b)
|
|||
{
|
||||
int r;
|
||||
while (a && b) {
|
||||
if ((r=((int)a->policy_type - (int)b->policy_type)))
|
||||
return r;
|
||||
if ((r=((int)a->addr - (int)b->addr)))
|
||||
return r;
|
||||
if ((r=((int)a->msk - (int)b->msk)))
|
||||
|
|
Loading…
Add table
Reference in a new issue