mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +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
@ -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…
Reference in New Issue
Block a user