Skip to content

Commit 0740526

Browse files
committed
use goto for error handling
1 parent 98e915e commit 0740526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iperf_server_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ iperf_accept(struct iperf_test *test)
187187

188188
if (Nwrite(test->ctrl_sck, server_duration_str, sizeof(server_duration_str), Ptcp) < 0) {
189189
i_errno = IESENDSERVERDURATION;
190-
return -1;
190+
goto error_handling;
191191
}
192192

193193
FD_SET(test->ctrl_sck, &test->read_set);

0 commit comments

Comments
 (0)