[or-cvs] r13453: patch from tup to fix bug 605 (tor/trunk/src/or)

arma at seul.org arma at seul.org
Sat Feb 9 22:52:30 UTC 2008


Author: arma
Date: 2008-02-09 17:52:29 -0500 (Sat, 09 Feb 2008)
New Revision: 13453

Modified:
   tor/trunk/src/or/test.c
Log:
patch from tup to fix bug 605


Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c	2008-02-09 22:17:12 UTC (rev 13452)
+++ tor/trunk/src/or/test.c	2008-02-09 22:52:29 UTC (rev 13453)
@@ -2232,8 +2232,8 @@
   r2->identity_pkey = crypto_pk_dup_key(pk1);
   r2->bandwidthrate = r2->bandwidthburst = r2->bandwidthcapacity = 3000;
   r2->exit_policy = smartlist_create();
-  smartlist_add(r2->exit_policy, &ex2);
-  smartlist_add(r2->exit_policy, &ex1);
+  smartlist_add(r2->exit_policy, ex2);
+  smartlist_add(r2->exit_policy, ex1);
   r2->nickname = tor_strdup("Fred");
 
   test_assert(!crypto_pk_write_public_key_to_string(pk1, &pk1_str,
@@ -2355,7 +2355,7 @@
   tor_free(dir1); /* XXXX And more !*/
   tor_free(dir2); /* And more !*/
   routerinfo_free(r1);
-//  routerinfo_free(r2); XXX020 this line crashes on openbsd and netbsd
+  routerinfo_free(r2);
 
   /* Try out version parsing functionality */
   test_eq(0, tor_version_parse("0.3.4pre2-cvs", &ver1));



More information about the tor-commits mailing list