Skip to content

Commit

Permalink
Close the descriptor when forces exit
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-mishin authored and bmah888 committed Mar 21, 2024
1 parent 7b94705 commit e06177c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iperf_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ iperf_tcp_accept(struct iperf_test * test)

if (Nread(s, cookie, COOKIE_SIZE, Ptcp) < 0) {
i_errno = IERECVCOOKIE;
close(s);
return -1;
}

Expand Down

0 comments on commit e06177c

Please sign in to comment.