Do not falsely start the connection through SSL_pending()/_has_pending()

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)
This commit is contained in:
Tomas Mraz 2024-08-01 17:17:42 +02:00 committed by Neil Horman
parent 0beef0ba00
commit b7f93c7fcb

View 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)) {