r19267@catbus: nickm | 2008-04-09 14:19:17 -0400

Backport 14204: start policy reference counts at 1, not 2.


svn:r14331
This commit is contained in:
Nick Mathewson
2008-04-09 18:24:48 +00:00
parent 73842d8045
commit ae0d14d346
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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);
}