From 433d107a9b2b0250d6806ed6fdc147117637fed5 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Thu, 27 Apr 2023 16:06:01 +0100 Subject: QUIC APL: Fix a bug where avail could be used uninitialized Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20765) --- ssl/quic/quic_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.1