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) uint8_t f2_public_key[crypto_box_PUBLICKEYBYTES]; uint8_t f2_secret_key[crypto_box_SECRETKEYBYTES]; crypto_box_keypair(f2_public_key, f2_secret_key); + ip_port_tcp_s.port = htons(ports[rand() % NUM_PORTS]); TCP_Client_Connection *conn2 = new_TCP_connection(ip_port_tcp_s, self_public_key, f2_public_key, f2_secret_key, 0); routing_response_handler(conn, response_callback, ((void *)conn) + 2); routing_status_handler(conn, status_callback, (void *)2);