vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Fri Dec 18 
19:07:45 2015 +0200| [dcd5ac975755779f5d3ebca9d101f3a56eb00ad5] | committer: 
Rémi Denis-Courmont

https: do not get stuck in corner case of chunked transfer

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

 modules/access/http/chunked.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/http/chunked.c b/modules/access/http/chunked.c
index d7ed54c..a9e2f5d 100644
--- a/modules/access/http/chunked.c
+++ b/modules/access/http/chunked.c
@@ -119,7 +119,7 @@ static block_t *vlc_chunked_read(struct vlc_http_stream 
*stream)
     {
         char crlf[2];
 
-        if (vlc_https_recv(s->tls, crlf, 2) < 2 || memcmp(crlf, "\r\n", 2))
+        if (vlc_tls_Read(s->tls, crlf, 2, true) < 2 || memcmp(crlf, "\r\n", 2))
             vlc_chunked_fatal(s);
     }
     return block;

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

Reply via email to