]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC APL: Revise SSL_pending and SSL_has_pending handling for s_client compat
authorHugo Landau <hlandau@openssl.org>
Thu, 4 Apr 2024 11:12:45 +0000 (12:12 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:32 +0000 (11:27 -0500)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24037)

ssl/quic/quic_impl.c

index 0d61bc949d6ae7f28a34bd455875c472472dc0ea..65a8fcd9b3d00e9046cebbecf195ef70e3fdf047 100644 (file)
@@ -313,7 +313,7 @@ static int expect_quic_as(const SSL *s, QCTX *ctx, uint32_t flags)
                 goto err;
 
             if ((flags & QCTX_REMOTE_INIT) != 0) {
-                if (!qc_wait_for_default_xso_for_read(ctx))
+                if (!qc_wait_for_default_xso_for_read(ctx, /*peek=*/0))
                     goto err;
             } else {
                 if (!qc_try_create_default_xso_for_write(ctx))
@@ -2704,7 +2704,7 @@ int ossl_quic_write_flags(SSL *s, const void *buf, size_t len,
 
     if (len == 0) {
         /* Do not autocreate default XSO for zero-length writes. */
-        if (!expect_quic(s, &ctx))
+        if (!expect_quic_cs(s, &ctx))
             return 0;
 
         qctx_lock_for_io(&ctx);