]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Make sure the QRX and QTX are associated with a libctx
authorMatt Caswell <matt@openssl.org>
Mon, 13 Mar 2023 17:58:19 +0000 (17:58 +0000)
committerPauli <pauli@openssl.org>
Sun, 19 Mar 2023 22:35:38 +0000 (09:35 +1100)
If a libctx has been associated with the channel, it must be passed down
to the QRX and QTX.

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

ssl/quic/quic_channel.c

index 7b79e9e50063b011ab5cd977ae5e0cbac6922719..984ee871b2f1c307c90ac59172f7c5727cb9ab37 100644 (file)
@@ -111,6 +111,7 @@ static int ch_init(QUIC_CHANNEL *ch)
         goto err;
 
     /* We plug in a network write BIO to the QTX later when we get one. */
+    qtx_args.libctx = ch->libctx;
     qtx_args.mdpl = QUIC_MIN_INITIAL_DGRAM_LEN;
     ch->rx_max_udp_payload_size = qtx_args.mdpl;
 
@@ -192,6 +193,7 @@ static int ch_init(QUIC_CHANNEL *ch)
                                             ch_default_packet_handler,
                                             ch);
 
+    qrx_args.libctx             = ch->libctx;
     qrx_args.demux              = ch->demux;
     qrx_args.short_conn_id_len  = rx_short_cid_len;
     qrx_args.max_deferred       = 32;