Ensure SSL_connect() actually blocks if we are in blocking mode
authorMatt Caswell <matt@openssl.org>
Tue, 13 Jun 2023 12:11:18 +0000 (13:11 +0100)
committerPauli <pauli@openssl.org>
Tue, 27 Jun 2023 23:53:22 +0000 (09:53 +1000)
Fix supplied by Hugo Landau.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21204)

ssl/quic/quic_impl.c

index d2a79feb61b164688ea15724ace4eaf4126ce81f..b1e9be774b248178e97dba6485ae85ce0e3f3e31 100644 (file)
@@ -339,6 +339,7 @@ SSL *ossl_quic_new(SSL_CTX *ctx)
     qc->default_stream_mode     = SSL_DEFAULT_STREAM_MODE_AUTO_BIDI;
     qc->default_ssl_mode        = qc->ssl.ctx->mode;
     qc->default_blocking        = 1;
+    qc->blocking                = 1;
     qc->incoming_stream_policy  = SSL_INCOMING_STREAM_POLICY_AUTO;
     qc->last_error              = SSL_ERROR_NONE;