Commit dcd5ac97 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent b616c49e
...@@ -119,7 +119,7 @@ static block_t *vlc_chunked_read(struct vlc_http_stream *stream) ...@@ -119,7 +119,7 @@ static block_t *vlc_chunked_read(struct vlc_http_stream *stream)
{ {
char crlf[2]; 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); vlc_chunked_fatal(s);
} }
return block; return block;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment