From: Nick Mathewson Date: Sat, 14 Jun 2003 01:39:23 +0000 (+0000) Subject: Dont test handshakes in an infinite loop X-Git-Tag: tor-0.0.2pre8~144 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b5dc72648c85d0d21cb9d0322e8df17446750e1;p=thirdparty%2Ftor.git Dont test handshakes in an infinite loop svn:r324 --- diff --git a/src/or/test.c b/src/or/test.c index 512e13f121..7cb79ac086 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -596,8 +596,9 @@ main(int c, char**v) { #endif log(LOG_ERR,NULL); /* make logging quieter */ + crypto_seed_rng(); + setup_directory(); -#ifndef DEBUG_ONION_SKINS puts("========================== Buffers ========================="); test_buffers(); puts("\n========================== Crypto =========================="); @@ -606,12 +607,7 @@ main(int c, char**v) { puts("\n========================= Util ============================"); test_util(); puts("\n========================= Onion Skins ====================="); -#endif - crypto_seed_rng(); - while(1) { - test_onion_handshake(); - fflush(NULL); - } + test_onion_handshake(); puts("\n========================= Directory Formats ==============="); test_dir_format(); puts("");