Commit 10e3b5a8 authored by Francois Cartegnie's avatar Francois Cartegnie

access: http: fix resp leaks on incorrect TE (cid #1346968)

parent 01ae91fc
......@@ -206,14 +206,20 @@ static struct vlc_http_msg *vlc_h1_stream_wait(struct vlc_http_stream *stream)
if (str != NULL)
{
if (vlc_http_next_token(str) != NULL)
{
vlc_http_msg_destroy(resp);
return vlc_h1_stream_fatal(conn); /* unsupported TE */
}
assert(conn->content_length == UINTMAX_MAX);
stream = vlc_chunked_open(stream, conn->conn.tls);
if (unlikely(stream == NULL))
{
vlc_http_msg_destroy(resp);
return vlc_h1_stream_fatal(conn);
}
}
}
else
conn->connection_close = true;
......
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