]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC CHANNEL: Ensure QLOG instance is used correctly on server side
authorHugo Landau <hlandau@openssl.org>
Mon, 29 Jan 2024 12:36:52 +0000 (12:36 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 2 Feb 2024 11:50:29 +0000 (11:50 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)

ssl/quic/quic_channel.c

index ff394bbe72234e5b2c2b4d1d146ba33ed714e26c..49d1121392f1638a05ab78998e44c59642fe006e 100644 (file)
@@ -3330,6 +3330,10 @@ int ossl_quic_channel_on_new_conn(QUIC_CHANNEL *ch, const BIO_ADDR *peer,
     if (!ossl_quic_tx_packetiser_set_cur_scid(ch->txp, &ch->cur_local_cid))
         return 0;
 
+    /* Setup QLOG, which did not happen earlier due to lacking an Initial ODCID. */
+    ossl_qtx_set_qlog(ch->qtx, ch_get_qlog(ch));
+    ossl_quic_tx_packetiser_set_qlog(ch->txp, ch_get_qlog(ch));
+
     /* Plug in secrets for the Initial EL. */
     if (!ossl_quic_provide_initial_secret(ch->port->engine->libctx,
                                           ch->port->engine->propq,