diff options
author | kjeyapal@akamai.com <kjeyapal@akamai.com> | 2018-11-16 14:27:12 +0530 |
---|---|---|
committer | Karthick J <kjeyapal@akamai.com> | 2018-11-22 12:06:27 +0530 |
commit | ce0a7536340518b20131c377788866e3030dfc6d (patch) | |
tree | 9ad77adb63fc4592dc8aace7a97a9644fa024a37 /libavformat/http.c | |
parent | 4903662a1da95ca8b9b720ae00508e26fbc84f9c (diff) |
avformat/http : Added check for valid URL context before calling shutdown
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 2 |
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); |