mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Fix a bug when generating router descriptors: The address part of exit policies was uninitialized.
svn:r16372
This commit is contained in:
parent
fd4a30d198
commit
ee44eadf4c
1 changed files with 1 additions and 1 deletions
|
@ -824,7 +824,7 @@ policy_write_item(char *buf, size_t buflen, addr_policy_t *policy,
|
|||
const int is_accept = policy->policy_type == ADDR_POLICY_ACCEPT;
|
||||
const int is_ip6 = tor_addr_family(&policy->addr) == AF_INET6;
|
||||
|
||||
tor_addr_to_str(buf, &policy->addr, sizeof(buf), 1);
|
||||
tor_addr_to_str(addrbuf, &policy->addr, sizeof(addrbuf), 1);
|
||||
|
||||
/* write accept/reject 1.2.3.4 */
|
||||
if (policy->is_private)
|
||||
|
|
Loading…
Add table
Reference in a new issue