[vlc-commits] smb: fix infinite loop on error

Rémi Denis-Courmont git at videolan.org
Wed Oct 21 19:05:25 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 31 22:52:49 2015 +0300| [a114b8a52d3bda0b71415a7f2058adf0a464ddfe] | committer: Jean-Baptiste Kempf

smb: fix infinite loop on error

(cherry picked from commit d1ffc88181749adc01015ca629ca8c2f561c876e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=a114b8a52d3bda0b71415a7f2058adf0a464ddfe
---

 modules/access/smb.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/smb.c b/modules/access/smb.c
index 60b26ee..b766b9b 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -296,6 +296,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