From: Hugo Landau Date: Thu, 27 Apr 2023 15:06:01 +0000 (+0100) Subject: QUIC APL: Fix a bug where avail could be used uninitialized X-Git-Tag: openssl-3.2.0-alpha1~826 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=433d107a9b2b0250d6806ed6fdc147117637fed5;p=thirdparty%2Fopenssl.git 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) --- diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 8a7df46c671..18a647bfa55 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))