summaryrefslogtreecommitdiff
path: root/auto_tests/TCP_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/TCP_test.c')
-rw-r--r--auto_tests/TCP_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c
index e222cf01..a03baf92 100644
--- a/auto_tests/TCP_test.c
+++ b/auto_tests/TCP_test.c
@@ -419,6 +419,7 @@ START_TEST(test_client)
419 uint8_t f2_public_key[crypto_box_PUBLICKEYBYTES]; 419 uint8_t f2_public_key[crypto_box_PUBLICKEYBYTES];
420 uint8_t f2_secret_key[crypto_box_SECRETKEYBYTES]; 420 uint8_t f2_secret_key[crypto_box_SECRETKEYBYTES];
421 crypto_box_keypair(f2_public_key, f2_secret_key); 421 crypto_box_keypair(f2_public_key, f2_secret_key);
422 ip_port_tcp_s.port = htons(ports[rand() % NUM_PORTS]);
422 TCP_Client_Connection *conn2 = new_TCP_connection(ip_port_tcp_s, self_public_key, f2_public_key, f2_secret_key, 0); 423 TCP_Client_Connection *conn2 = new_TCP_connection(ip_port_tcp_s, self_public_key, f2_public_key, f2_secret_key, 0);
423 routing_response_handler(conn, response_callback, ((void *)conn) + 2); 424 routing_response_handler(conn, response_callback, ((void *)conn) + 2);
424 routing_status_handler(conn, status_callback, (void *)2); 425 routing_status_handler(conn, status_callback, (void *)2);