summaryrefslogtreecommitdiff
path: root/recipes/iperf/iperf-2.0.4/006-iperf-die-on-connect-fail.patch
blob: 968a19aa4836ed623794da564362e53b4b2d77ae (plain)
1
2
3
4
5
6
7
8
9
10
11
--- iperf-2.0.4/src/Client.cpp	2008-04-07 22:37:54.000000000 -0400
+++ iperf-2.0.4-fixed/src/Client.cpp	2009-03-03 12:30:02.000000000 -0500
@@ -403,7 +403,7 @@
     // connect socket
     rc = connect( mSettings->mSock, (sockaddr*) &mSettings->peer, 
                   SockAddr_get_sizeof_sockaddr( &mSettings->peer ));
-    WARN_errno( rc == SOCKET_ERROR, "connect" );
+    FAIL_errno( rc == SOCKET_ERROR, "connect", mSettings );
 
     getsockname( mSettings->mSock, (sockaddr*) &mSettings->local, 
                  &mSettings->size_local );