From 6c093a17a9b73c3bbcf2c53c4bcc4e06c56dcef8 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 11 Feb 2006 23:47:24 +0000 Subject: 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 --- src/or/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/or/config.c b/src/or/config.c index d97d8c4b7e..a62ce5f1fa 100644 --- a/src/or/config.c +++ b/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))) -- cgit v1.2.3-54-g00ecf