Skip to content

Commit

Permalink
QUIC APL: Revise SSL_pending and SSL_has_pending handling for s_clien…
Browse files Browse the repository at this point in the history
…t compat

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #24037)
  • Loading branch information
hlandau committed Apr 19, 2024
1 parent ea5801d commit c8cd1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl/quic/quic_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -2689,7 +2689,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);
Expand Down

0 comments on commit c8cd1de

Please sign in to comment.