Commit c16b17c6 authored by Laurent Aimar's avatar Laurent Aimar

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

parent 4a26ac7f
...@@ -783,7 +783,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len ) ...@@ -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 */ /* fatal error - end of file */
msg_Dbg( p_access, "failed reading chunk-header line" ); msg_Dbg( p_access, "failed reading chunk-header line" );
return 0; goto fatal;
} }
p_sys->i_chunk = strtoll( psz, NULL, 16 ); p_sys->i_chunk = strtoll( psz, NULL, 16 );
free( psz ); free( psz );
......
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