fix crash in connection_tester

This commit is contained in:
Arvid Norberg 2011-11-09 06:03:24 +00:00
parent e71ead49ed
commit 4a5769857b
1 changed files with 1 additions and 2 deletions

View File

@ -643,8 +643,7 @@ int main(int argc, char* argv[])
if (argc != 6) print_usage(); if (argc != 6) print_usage();
test_mode = dual_test; test_mode = dual_test;
} }
else print_usage();
if (!download_test && !upload_test) print_usage();
int num_connections = atoi(argv[2]); int num_connections = atoi(argv[2]);
error_code ec; error_code ec;