[vlc-commits] smb: fix infinite loop on error
Rémi Denis-Courmont
git at videolan.org
Mon Aug 31 22:03:28 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 31 22:52:49 2015 +0300| [d1ffc88181749adc01015ca629ca8c2f561c876e] | committer: Rémi Denis-Courmont
smb: fix infinite loop on error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1ffc88181749adc01015ca629ca8c2f561c876e
---
modules/access/smb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/access/smb.c b/modules/access/smb.c
index e5fadcd..c1afb4c 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -337,6 +337,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
if( i_read < 0 )
{
msg_Err( p_access, "read failed (%s)", vlc_strerror_c(errno) );
+ p_access->info.b_eof = true;
return -1;
}
More information about the vlc-commits
mailing list