diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-12-24 02:17:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-12-24 02:17:32 +0000 |
commit | e8585dfe9785c9fd6e74707aa84637c3be0cd1d2 (patch) | |
tree | 8f0b0083acbeb658a845c295227fc2f2585fcfb8 /src/or/test.c | |
parent | 7117366810c11845339ec21253d4d509b5aeb1e5 (diff) | |
download | tor-e8585dfe9785c9fd6e74707aa84637c3be0cd1d2.tar.gz tor-e8585dfe9785c9fd6e74707aa84637c3be0cd1d2.zip |
Remove length restriction when generating directories.
svn:r3218
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c index 817e571e92..2260f204b7 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1164,11 +1164,11 @@ test_dir_format(void) cp = buf; test_eq(dirserv_add_descriptor((const char**)&cp), 1); get_options()->Nickname = tor_strdup("DirServer"); - test_assert(!dirserv_dump_directory_to_string(buf,8192,pk3)); - cp = buf; - test_assert(!router_parse_routerlist_from_directory(buf, &dir1, pk3, 1)); + test_assert(!dirserv_dump_directory_to_string(&cp,pk3)); + test_assert(!router_parse_routerlist_from_directory(cp, &dir1, pk3, 1)); test_eq(2, smartlist_len(dir1->routers)); dirserv_free_fingerprint_list(); + tor_free(cp); tor_free(pk1_str); tor_free(pk2_str); |