[or-cvs] r12842: and another in the unit tests (tor/trunk/src/or)

arma at seul.org arma at seul.org
Sun Dec 16 20:47:21 UTC 2007


Author: arma
Date: 2007-12-16 15:47:20 -0500 (Sun, 16 Dec 2007)
New Revision: 12842

Modified:
   tor/trunk/src/or/test.c
Log:
and another in the unit tests


Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c	2007-12-16 20:46:23 UTC (rev 12841)
+++ tor/trunk/src/or/test.c	2007-12-16 20:47:20 UTC (rev 12842)
@@ -3324,7 +3324,7 @@
     info->port = crypto_rand_int(65536);
     generated->intro_points[i] = tor_strdup(info->nickname);
     generated->intro_point_extend_info[i] = info;
-    strmap_set(generated->intro_keys, info->nickname, pk2);
+    strmap_set(generated->intro_keys, info->nickname, crypto_pk_dup_key(pk2));
   }
   test_assert(rend_encode_v2_descriptors(descs, generated, now,
                                          NULL, 0) > 0);
@@ -3366,6 +3366,7 @@
     rend_encoded_v2_service_descriptor_free(smartlist_get(descs, i));
   smartlist_free(descs);
   rend_service_descriptor_free(parsed);
+  rend_service_descriptor_free(generated);
 }
 
 #define ENT(x) { #x, test_ ## x, 0, 0 }



More information about the tor-commits mailing list