]> git.sesse.net Git - vlc/commitdiff
0 bytes UDP packet are legal!
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 13 Feb 2007 19:47:51 +0000 (19:47 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 13 Feb 2007 19:47:51 +0000 (19:47 +0000)
modules/access/udp.c

index d034925b7c64b919c941e1604f53c68f47799537..54ed20d514ff4b4be09e3e4e9c3f8abccd2941f7 100644 (file)
@@ -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;