From c2212dc19eb280e22bda7d0538b23eef0be040e9 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 13 Mar 2023 17:58:19 +0000 Subject: [PATCH] Make sure the QRX and QTX are associated with a libctx If a libctx has been associated with the channel, it must be passed down to the QRX and QTX. Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20514) --- ssl/quic/quic_channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index 7b79e9e5006..984ee871b2f 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -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; -- 2.47.3