diff options
author | Roger Dingledine <arma@torproject.org> | 2007-12-16 20:47:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-12-16 20:47:20 +0000 |
commit | b3e6c66a0541e6eb1399a532e88e485710c9940f (patch) | |
tree | 4fbaf060cce87d2fe85878c790faa74c96467610 /src/or/test.c | |
parent | e70d9a7f4d864a9ad3d2afca24c0087a66605d46 (diff) | |
download | tor-b3e6c66a0541e6eb1399a532e88e485710c9940f.tar.gz tor-b3e6c66a0541e6eb1399a532e88e485710c9940f.zip |
and another in the unit tests
svn:r12842
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 95e7b966dc..956606c2ad 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3324,7 +3324,7 @@ test_rend_fns_v2(void) 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 @@ 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); } #define ENT(x) { #x, test_ ## x, 0, 0 } |