vlc | branch: master | Laurent Aimar <[email protected]> | Fri Jan  6 
22:20:56 2012 +0100| [c16b17c630c48c28a2f31629ff736e41cc789d73] | committer: 
Laurent Aimar

Execute EOF when an error occurs while reading the chunk header (HTTP).

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

 modules/access/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index d32a0a9..d8e56a4 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -783,7 +783,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, 
size_t i_len )
             {
                 /* fatal error - end of file */
                 msg_Dbg( p_access, "failed reading chunk-header line" );
-                return 0;
+                goto fatal;
             }
             p_sys->i_chunk = strtoll( psz, NULL, 16 );
             free( psz );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to