diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-05-03 11:12:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-05-16 08:25:53 -0400 |
commit | 8a536be70511e78befa08475a109a231cde0cd0e (patch) | |
tree | 790bd9909b2db8f6da7eaa629ba3669c89ba439e /src/test/test_ntor_cl.c | |
parent | 820b1984ad61e28fbbdc7194f862c6e2d8edbf8d (diff) | |
download | tor-8a536be70511e78befa08475a109a231cde0cd0e.tar.gz tor-8a536be70511e78befa08475a109a231cde0cd0e.zip |
Mark unreachable lines in crypto_curve25519.c
Also, resolve a bug in test_ntor_cl.c
Diffstat (limited to 'src/test/test_ntor_cl.c')
-rw-r--r-- | src/test/test_ntor_cl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_ntor_cl.c b/src/test/test_ntor_cl.c index 6df123162e..49c9ad76d4 100644 --- a/src/test/test_ntor_cl.c +++ b/src/test/test_ntor_cl.c @@ -153,7 +153,10 @@ main(int argc, char **argv) if (argc < 2) { fprintf(stderr, "I need arguments. Read source for more info.\n"); return 1; - } else if (!strcmp(argv[1], "client1")) { + } + + curve25519_init(); + if (!strcmp(argv[1], "client1")) { return client1(argc, argv); } else if (!strcmp(argv[1], "server1")) { return server1(argc, argv); |