]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Do not falsely start the connection through SSL_pending()/_has_pending()
authorTomas Mraz <tomas@openssl.org>
Thu, 1 Aug 2024 15:17:42 +0000 (17:17 +0200)
committerNeil Horman <nhorman@openssl.org>
Sat, 3 Aug 2024 13:18:11 +0000 (09:18 -0400)
Fixes #25054

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25069)

ssl/quic/quic_impl.c

index c77230a19f0a18320057fced0c3d58f8f86d4716..8884cfb7f3ffff8a7bea576eac190c1f91d1d0a7 100644 (file)
@@ -2863,6 +2863,9 @@ static size_t ossl_quic_pending_int(const SSL *s, int check_channel)
 
     quic_lock(ctx.qc);
 
+    if (!ctx.qc->started)
+        goto out;
+
     if (ctx.xso == NULL) {
         /* No XSO yet, but there might be a default XSO eligible to be created. */
         if (qc_wait_for_default_xso_for_read(&ctx, /*peek=*/1)) {