int i_val, i_handle = -1;
bool b_unreach = false;
- if( i_hlim < 1 )
+ if( i_hlim < 0 )
i_hlim = var_CreateGetInteger( p_this, "ttl" );
memset( &hints, 0, sizeof( hints ) );
setsockopt (fd, SOL_SOCKET, SO_BROADCAST, &(int){ 1 }, sizeof (int));
#endif
- if( i_hlim > 0 )
+ if( i_hlim >= 0 )
net_SetMcastHopLimit( p_this, fd, ptr->ai_family, i_hlim );
str = var_CreateGetNonEmptyString (p_this, "miface");
if (val != -1)
break;
- close (fd);
+ net_Close (fd);
}
vlc_freeaddrinfo (rem);