summaryrefslogtreecommitdiff
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorkjeyapal@akamai.com <kjeyapal@akamai.com>2018-11-16 14:27:12 +0530
committerKarthick J <kjeyapal@akamai.com>2018-11-22 12:06:27 +0530
commitce0a7536340518b20131c377788866e3030dfc6d (patch)
tree9ad77adb63fc4592dc8aace7a97a9644fa024a37 /libavformat/http.c
parent4903662a1da95ca8b9b720ae00508e26fbc84f9c (diff)
avformat/http : Added check for valid URL context before calling shutdown
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 3a35bc7eac..240304f6e6 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -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);