Package: iperf
Version: iperf_2.0.4-3

When iperf encounters a fatal error when binding to a port, such as
the port being already in use or lacking permission, it fails to give
fatal error, but instead pretends to continue to listen on the port.

$ iperf -v
iperf version 2.0.4+svnr43 (7 Apr 2008) pthreads
$ iperf -s -p 80
bind failed: Permission denied
------------------------------------------------------------
Server listening on TCP port 80
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

This is with the iperf_2.0.4-3_i386.deb package.

The attached patch resolves the issue.

Attachment: iperf-die-on-bind-fail.patch
Description: Binary data

Reply via email to