Commit 6c093a17 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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
parent fdf18fbb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)))