aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPaweł Wegner <pawel.wegner95@gmail.com>2018-08-02 21:08:12 +0200
committerThilo Borgmann <thilo.borgmann@mail.de>2018-08-18 16:40:05 +0200
commit85c00643b763bc62f3a15c19df44c3f1312bfe81 (patch)
treee623e20938515b0c216d41845b47cee34b20da20 /libavformat
parent49efd41c471756edd8f32e68f7e57116fdf7ecd4 (diff)
downloadffmpeg-85c00643b763bc62f3a15c19df44c3f1312bfe81.tar.gz
avformat/tls_schannel: Fix use of uninitialized variable
Fixes: runtime error: passing uninitialized value to FreeContextBuffer causes a crash Signed-off-by: Paweł Wegner <pawel.wegner95@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tls_schannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c
index f41b007773..4f0badcb8d 100644
--- a/libavformat/tls_schannel.c
+++ b/libavformat/tls_schannel.c
@@ -148,7 +148,7 @@ static int tls_client_handshake_loop(URLContext *h, int initial)
TLSContext *c = h->priv_data;
TLSShared *s = &c->tls_shared;
SECURITY_STATUS sspi_ret;
- SecBuffer outbuf[3];
+ SecBuffer outbuf[3] = { 0 };
SecBufferDesc outbuf_desc;
SecBuffer inbuf[2];
SecBufferDesc inbuf_desc;