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:
Roger Dingledine 2006-02-11 23:47:24 +00:00
parent fdf18fbbdb
commit 6c093a17a9

View File

@ -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)))