diff options
author | Paweł Wegner <pawel.wegner95@gmail.com> | 2018-08-02 21:08:12 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2020-09-04 20:46:28 +0300 |
commit | 30891d0932c884afb86589a8b1121df9c1fd052f (patch) | |
tree | edcedf659bc32ef16e7d08d0900531b13568fbce | |
parent | 567c20f78109588620c57696ab39ff314fe12d6c (diff) | |
download | ffmpeg-30891d0932c884afb86589a8b1121df9c1fd052f.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>
(cherry picked from commit 85c00643b763bc62f3a15c19df44c3f1312bfe81)
-rw-r--r-- | libavformat/tls_schannel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c index 9f1c08806f..1c65c25441 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; |