Don't use connect() when the "bind" address is a multicast group
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 1 Mar 2006 11:20:10 +0000 (11:20 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 1 Mar 2006 11:20:10 +0000 (11:20 +0000)
Bug reported by Alexander Gall

modules/misc/network/ipv4.c
modules/misc/network/ipv6.c

index 2912b2a..2372865 100644 (file)
@@ -411,8 +411,8 @@ static int OpenUDP( vlc_object_t * p_this )
             }
          }
     }
+    else
 #endif
-
     if( *psz_server_addr )
     {
         /* Build socket for remote connection */
index 2f88d23..d88607a 100644 (file)
@@ -303,7 +303,7 @@ static int OpenUDP( vlc_object_t * p_this )
             } 
         }
     }
-
+    else
     if( *psz_server_addr )
     {
         int ttl;