[or-cvs] r16372: Fix a bug when generating router descriptors: The address pa (tor/trunk/src/or)

kloesing at seul.org kloesing at seul.org
Sun Aug 3 12:43:19 UTC 2008


Author: kloesing
Date: 2008-08-03 08:43:18 -0400 (Sun, 03 Aug 2008)
New Revision: 16372

Modified:
   tor/trunk/src/or/policies.c
Log:
Fix a bug when generating router descriptors: The address part of exit policies was uninitialized.

Modified: tor/trunk/src/or/policies.c
===================================================================
--- tor/trunk/src/or/policies.c	2008-08-03 08:48:10 UTC (rev 16371)
+++ tor/trunk/src/or/policies.c	2008-08-03 12:43:18 UTC (rev 16372)
@@ -824,7 +824,7 @@
   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)



More information about the tor-commits mailing list