Skip to content

Commit

Permalink
Merge pull request #1708 from davidBar-On/udp-do-listen-to-old-prot_l…
Browse files Browse the repository at this point in the history
…estener

Do not listen to old UDP prot_listener
  • Loading branch information
bmah888 authored Jul 12, 2024
2 parents f52bfa3 + ac6b9f7 commit ed66f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iperf_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ iperf_udp_accept(struct iperf_test *test)
/*
* Create a new "listening" socket to replace the one we were using before.
*/
FD_CLR(test->prot_listener, &test->read_set); // No control messages from old listener
test->prot_listener = netannounce(test->settings->domain, Pudp, test->bind_address, test->bind_dev, test->server_port);
if (test->prot_listener < 0) {
i_errno = IESTREAMLISTEN;
Expand Down

0 comments on commit ed66f42

Please sign in to comment.