diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-28 04:21:57 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-28 04:21:57 +0000 |
commit | e14aedaad08f091676aac8112d82f10a43c149a1 (patch) | |
tree | 84d91f8522af2196651609c5e580a01cae4e6b50 /src/or/test.c | |
parent | c8401a30ae6de4258496b899a7e58f3714eea9d6 (diff) | |
download | tor-e14aedaad08f091676aac8112d82f10a43c149a1.tar.gz tor-e14aedaad08f091676aac8112d82f10a43c149a1.zip |
Fix memory leaks in directory parsing
svn:r421
Diffstat (limited to 'src/or/test.c')
-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 741bb767a9..da982cd0be 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -539,7 +539,7 @@ test_dir_format() &pk1_str_len)); test_assert(!crypto_pk_write_public_key_to_string(pk2 , &pk2_str, &pk2_str_len)); - strcpy(buf2, "router testaddr1.foo.bar 9000 9001 9002 9003 1000\n"); + strcpy(buf2, "router testaddr1.foo.bar 9000 9002 9003 1000\n"); strcat(buf2, pk1_str); strcat(buf2, "\n"); @@ -559,7 +559,7 @@ test_dir_format() test_assert(rp1->signing_pkey == NULL); test_assert(rp1->exit_policy == NULL); - strcpy(buf2, "router tor.tor.tor 9005 0 0 0 3000\n"); + strcpy(buf2, "router tor.tor.tor 9005 0 0 3000\n"); strcat(buf2, pk2_str); strcat(buf2, "signing-key\n"); strcat(buf2, pk1_str); |