Skip to content

Commit

Permalink
Add missing code for SERVER_ERRROR handling under HAVE_SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBar-On committed Feb 15, 2025
1 parent 6b69d06 commit 5e22d15
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/iperf_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2201,12 +2201,17 @@ iperf_exchange_parameters(struct iperf_test *test)
i_errno = IECTRLWRITE;
return -1;
}
err = htonl(errno);
if (Nwrite(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) {
i_errno = IECTRLWRITE;
return -1;
}
return -1;
}
#endif //HAVE_SSL

if ((s = test->protocol->listen(test)) < 0) {
if (iperf_set_send_state(test, SERVER_ERROR) != 0)
if (iperf_set_send_state(test, SERVER_ERROR) != 0)
return -1;
err = htonl(i_errno);
if (Nwrite(test->ctrl_sck, (char*) &err, sizeof(err), Ptcp) < 0) {
Expand Down

0 comments on commit 5e22d15

Please sign in to comment.