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

0 bytes UDP packet are legal!

parent 0666b4e2
......@@ -335,7 +335,7 @@ static block_t *BlockUDP( access_t *p_access )
p_block->i_buffer = net_Read( p_access, p_sys->fd, NULL,
p_block->p_buffer, p_sys->i_mtu,
VLC_FALSE );
if( p_block->i_buffer <= 0 )
if( p_block->i_buffer < 0 )
{
block_Release( p_block );
return NULL;
......
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