Commit ce0a7536 authored by kjeyapal@akamai.com's avatar kjeyapal@akamai.com Committed by Karthick J

avformat/http : Added check for valid URL context before calling shutdown

parent 4903662a
......@@ -1650,7 +1650,7 @@ static int http_close(URLContext *h)
av_freep(&s->inflate_buffer);
#endif /* CONFIG_ZLIB */
if (!s->end_chunked_post)
if (s->hd && !s->end_chunked_post)
/* Close the write direction by sending the end of chunked encoding. */
ret = http_shutdown(h, h->flags);
......
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