summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-03-26 21:08:39 +0000
committerNick Mathewson <nickm@torproject.org>2008-03-26 21:08:39 +0000
commit944bd3dbed3de47aaa6fc98a121d66643e611af7 (patch)
tree4c69708ce2cd029d8dd9d36d2ab71d63427cd0ba /src/or/policies.c
parente9221f4a0d01bd6fb7761cdb76af9870575c002a (diff)
downloadtor-944bd3dbed3de47aaa6fc98a121d66643e611af7.tar.gz
tor-944bd3dbed3de47aaa6fc98a121d66643e611af7.zip
r19074@catbus: nickm | 2008-03-26 17:08:32 -0400
Start new address policies with refcount of 1, not 2. Backport candidate once tested more. svn:r14204
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index cccc72acbb..31b7917e9c 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -495,7 +495,7 @@ addr_policy_get_canonical_entry(addr_policy_t *e)
found = tor_malloc_zero(sizeof(policy_map_ent_t));
found->policy = tor_memdup(e, sizeof(addr_policy_t));
found->policy->is_canonical = 1;
- found->policy->refcnt = 1;
+ found->policy->refcnt = 0;
HT_INSERT(policy_map, &policy_root, found);
}