[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r12907: the better fix for the unit tests (tor/trunk/src/or)



Author: arma
Date: 2007-12-21 05:44:10 -0500 (Fri, 21 Dec 2007)
New Revision: 12907

Modified:
   tor/trunk/src/or/test.c
Log:
the better fix for the unit tests


Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c	2007-12-21 10:42:14 UTC (rev 12906)
+++ tor/trunk/src/or/test.c	2007-12-21 10:44:10 UTC (rev 12907)
@@ -3330,7 +3330,7 @@
     intro->extend_info->addr = crypto_rand_int(65536); /* Does not cover all
                                                         * IP addresses. */
     intro->extend_info->port = crypto_rand_int(65536);
-    intro->intro_key = pk2;
+    intro->intro_key = crypto_pk_dup_key(pk2);
     smartlist_add(generated->intro_nodes, intro);
   }
   test_assert(rend_encode_v2_descriptors(descs, generated, now,
@@ -3374,7 +3374,7 @@
     rend_encoded_v2_service_descriptor_free(smartlist_get(descs, i));
   smartlist_free(descs);
   rend_service_descriptor_free(parsed);
-//  rend_service_descriptor_free(generated); XXX020
+  rend_service_descriptor_free(generated);
 }
 
 static void