summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-04-27 16:06:01 +0100
committerHugo Landau <hlandau@openssl.org>2023-05-12 14:47:14 +0100
commit433d107a9b2b0250d6806ed6fdc147117637fed5 (patch)
tree02fc94d4de49fa9cff30715a5c22c2f5e95437cb
parent97f30fd5d84d3409a4720226f61e94b6442fb3c9 (diff)
downloadopenssl-new-433d107a9b2b0250d6806ed6fdc147117637fed5.tar.gz
QUIC APL: Fix a bug where avail could be used uninitialized
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20765)
-rw-r--r--ssl/quic/quic_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index 8a7df46c67..18a647bfa5 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -1966,7 +1966,7 @@ QUIC_TAKES_LOCK
static size_t ossl_quic_pending_int(const SSL *s)
{
QCTX ctx;
- size_t avail;
+ size_t avail = 0;
int fin = 0;
if (!expect_quic_with_stream_lock(s, /*remote_init=*/-1, &ctx))