From e14aedaad08f091676aac8112d82f10a43c149a1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 28 Aug 2003 04:21:57 +0000 Subject: Fix memory leaks in directory parsing svn:r421 --- src/or/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/test.c') 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); -- cgit v1.2.3-54-g00ecf