Fix a bug when generating router descriptors: The address part of exit policies was uninitialized.

svn:r16372
This commit is contained in:
Karsten Loesing 2008-08-03 12:43:18 +00:00
parent fd4a30d198
commit ee44eadf4c

View File

@ -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)