avformat/tls_schannel: Initialize ret

Fixes: CID1591881 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/7.1
Michael Niedermayer 7 months ago
parent 426d8c84c3
commit f022afea77
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      libavformat/tls_schannel.c

@ -391,7 +391,7 @@ static int tls_read(URLContext *h, uint8_t *buf, int len)
SECURITY_STATUS sspi_ret = SEC_E_OK;
SecBuffer inbuf[4];
SecBufferDesc inbuf_desc;
int size, ret;
int size, ret = 0;
int min_enc_buf_size = len + SCHANNEL_FREE_BUFFER_SIZE;
/* If we have some left-over data from previous network activity,

Loading…
Cancel
Save