Don't pass NULL when we really mean to pass 0.

Fixes a warning on MacOS.
This commit is contained in:
Bruce A. Mah 2014-09-22 15:11:59 -07:00
parent 9fc0149e1c
commit 8365c3d003
No known key found for this signature in database
GPG Key ID: 4984910A8CAAEE8A

View File

@ -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;