diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-22 15:50:48 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-03 02:21:55 +0100 |
commit | 7620d48f2eab67812d8c535d12a98eaa754a1177 (patch) | |
tree | fa54495c95ff5b4c0b6fa991124dc78e90732646 /libavformat/tls.c | |
parent | 9d7ae72725e16bc4b53ed6ccedf86d0ae2853809 (diff) | |
download | ffmpeg-7620d48f2eab67812d8c535d12a98eaa754a1177.tar.gz |
avformat/network: Check for av_malloc* failures in ff_tls_init()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/tls.c')
-rw-r--r-- | libavformat/tls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/tls.c b/libavformat/tls.c index d6a6be3e1e..942083bac9 100644 --- a/libavformat/tls.c +++ b/libavformat/tls.c @@ -175,7 +175,8 @@ static int tls_open(URLContext *h, const char *uri, int flags) const char *proxy_path; int use_proxy; - ff_tls_init(); + if ((ret = ff_tls_init()) < 0) + return ret; if (c->listen) snprintf(opts, sizeof(opts), "?listen=1"); |