Kaynağa Gözat

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

Roger Dingledine 19 yıl önce
ebeveyn
işleme
6c093a17a9
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/or/config.c

+ 2 - 0
src/or/config.c

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