]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC APL: Fix a bug where avail could be used uninitialized
authorHugo Landau <hlandau@openssl.org>
Thu, 27 Apr 2023 15:06:01 +0000 (16:06 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 12 May 2023 13:47:14 +0000 (14:47 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)

ssl/quic/quic_impl.c

index 8a7df46c67138f886a041a097587f8978b36e920..18a647bfa5509179bf7e5a204f41415e1ba6a35c 100644 (file)
@@ -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))