diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2008-08-03 12:43:18 +0000 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2008-08-03 12:43:18 +0000 |
commit | ee44eadf4c79ff8227fb20b6484dfecb7499e89c (patch) | |
tree | c7e2dac01abe349a15eaaa318492b9f7255d0552 | |
parent | fd4a30d198e2ff166b0fcee9243923eb1b58fcd4 (diff) | |
download | tor-ee44eadf4c79ff8227fb20b6484dfecb7499e89c.tar.gz tor-ee44eadf4c79ff8227fb20b6484dfecb7499e89c.zip |
Fix a bug when generating router descriptors: The address part of exit policies was uninitialized.
svn:r16372
-rw-r--r-- | src/or/policies.c | 2 |
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) |