diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-21 10:44:10 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-21 10:44:10 +0000 |
commit | c1af7de6e4e021405c84f7e57a805f42804907d9 (patch) | |
tree | 2ce5eca0adb6d140e56d697ad3d48c48128d41c7 | |
parent | 33092b470b099e619f7ed12bec0bba3f4a0fa92b (diff) | |
download | tor-c1af7de6e4e021405c84f7e57a805f42804907d9.tar tor-c1af7de6e4e021405c84f7e57a805f42804907d9.tar.gz |
the better fix for the unit tests
svn:r12907
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 5f1e82c6d..029d9c472 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3330,7 +3330,7 @@ test_rend_fns_v2(void) 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 @@ test_rend_fns_v2(void) 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 |