[or-cvs] Dont test handshakes in an infinite loop
Nick Mathewson
nickm at seul.org
Sat Jun 14 01:39:25 UTC 2003
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv4381/src/or
Modified Files:
test.c
Log Message:
Dont test handshakes in an infinite loop
Index: test.c
===================================================================
RCS file: /home/or/cvsroot/src/or/test.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- test.c 14 Jun 2003 01:30:53 -0000 1.23
+++ test.c 14 Jun 2003 01:39:23 -0000 1.24
@@ -596,8 +596,9 @@
#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 @@
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("");
More information about the tor-commits
mailing list