diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-05-09 02:00:33 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-05-09 02:00:33 +0000 |
commit | 9ef930f21add3cb65673ef74358a00ab42487d5c (patch) | |
tree | 17d2a7426eddde3c1dcd510039ddea0e3ed3ed8c /src/or/test.c | |
parent | c2e7b5ec3fd019cb1321829c45b6ccbc689609a0 (diff) | |
download | tor-9ef930f21add3cb65673ef74358a00ab42487d5c.tar.gz tor-9ef930f21add3cb65673ef74358a00ab42487d5c.zip |
Routerinfos are no longer linked
svn:r283
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/test.c b/src/or/test.c index 70f25ed0e8..e9f17e2eeb 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -547,7 +547,6 @@ test_dir_format() r1.signing_pkey = NULL; r1.bandwidth = 1000; r1.exit_policy = NULL; - r1.next = &r2; ex1.policy_type = EXIT_POLICY_ACCEPT; ex1.string = NULL; @@ -568,7 +567,6 @@ test_dir_format() r2.signing_pkey = pk1; r2.bandwidth = 3000; r2.exit_policy = &ex1; - r2.next = NULL; test_assert(!crypto_pk_write_public_key_to_string(pk1, &pk1_str, &pk1_str_len)); @@ -636,13 +634,12 @@ test_dir_format() test_assert(! router_get_dir_from_string_impl(buf, &dir2, pk1)); test_eq(2, dir2->n_routers); - if (pk1_str) free(pk1_str); if (pk2_str) free(pk2_str); if (pk1) crypto_free_pk_env(pk1); if (pk2) crypto_free_pk_env(pk2); - if (rp1) routerlist_free(rp1); - if (rp2) routerlist_free(rp2); + if (rp1) routerinfo_free(rp1); + if (rp2) routerinfo_free(rp2); if (dir1) free(dir1); /* And more !*/ if (dir1) free(dir2); /* And more !*/ } |