Commit 703f2f5d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't print EAFNOSUPPORT error when the given name/address does not

even resolve to IPv6 - though cosmetic that seemed to confuse a guy on
the mailing list - refs #320.

A cleaner more clever solution would be better.
parent 4ea0f005
......@@ -169,6 +169,10 @@ static int OpenUDP( vlc_object_t * p_this )
p_socket->i_handle = -1;
/* Build the local socket */
if ( BuildAddr( p_this, &sock, psz_bind_addr, i_bind_port ) == -1 )
return 0;
/* Open a SOCK_DGRAM (UDP) socket, in the AF_INET6 domain, automatic (0)
* protocol */
if( (i_handle = socket( AF_INET6, SOCK_DGRAM, 0 )) == -1 )
......@@ -224,13 +228,6 @@ static int OpenUDP( vlc_object_t * p_this )
strerror(errno) );
}
/* Build the local socket */
if ( BuildAddr( p_this, &sock, psz_bind_addr, i_bind_port ) == -1 )
{
close( i_handle );
return 0;
}
#if defined(WIN32)
/* Under Win32 and for multicasting, we bind to IN6ADDR_ANY */
if( IN6_IS_ADDR_MULTICAST(&sock.sin6_addr) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment