mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +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
@ -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_accept = policy->policy_type == ADDR_POLICY_ACCEPT;
|
||||||
const int is_ip6 = tor_addr_family(&policy->addr) == AF_INET6;
|
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 */
|
/* write accept/reject 1.2.3.4 */
|
||||||
if (policy->is_private)
|
if (policy->is_private)
|
||||||
|
Loading…
Reference in New Issue
Block a user