don't connect when sockaddr is empty ipv6 only. ipv4 behaviour unknown.
dw6 [Fri, 4 Apr 2008 09:52:48 +0000 (09:52 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@781 270642c3-0616-0410-b53a-bc976706d245

Socket/Protocols/INet/ConnectedRawINetSocketHandle.cc

index 45715cb..bb03831 100644 (file)
@@ -83,7 +83,10 @@ senf::ConnectedRawV6SocketProtocol::init_client(int const & protocol, INet6Socke
     const
 {
     init_client(protocol);
-    clientHandle().connect(address);
+    if(address.boolean_test()){ 
+       //only connect if socket is not [::]:0, this results in an irreversible binding to the lo interface (linux 2.6.15)
+       clientHandle().connect(address);
+    }
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////