mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user