aboutsummaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 7fef216e3d..60320a6b5d 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -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)