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

Fix error message on failed TCP connection

parent 0e960e4f
......@@ -215,6 +215,7 @@ int __net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
if( getsockopt( fd, SOL_SOCKET, SO_ERROR, (void*)&i_val,
&i_val_size ) == -1 || i_val != 0 )
{
errno = i_val;
msg_Err( p_this, "connection failed: %m" );
goto next_ai;
}
......
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