diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c index 7f800cd..707a466 100644 --- a/src/iperf_client_api.c +++ b/src/iperf_client_api.c @@ -271,7 +271,7 @@ iperf_connect(struct iperf_test *test) /* Create and connect the control channel */ if (test->ctrl_sck < 0) // Create the control channel using an ephemeral port - test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, NULL, test->server_hostname, test->server_port); + test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, 0, test->server_hostname, test->server_port); if (test->ctrl_sck < 0) { i_errno = IECONNECT; return -1;