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>
pull/293/merge
Paweł Wegner 6 years ago committed by Thilo Borgmann
parent 49efd41c47
commit 85c00643b7
  1. 2
      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;

Loading…
Cancel
Save