]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC TXP: Make discard_enc_level match documentation
authorHugo Landau <hlandau@openssl.org>
Mon, 31 Oct 2022 16:03:25 +0000 (16:03 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 13 Jan 2023 13:20:12 +0000 (13:20 +0000)
The documentation in the header file of the TXP stated that it is the
caller's responsibility to also notify the QTX of a discarded EL.
However, the implementation did not reflect this. Update the
implementation to reflect the intended design.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)

ssl/quic/quic_txp.c

index 6224891a35bf07bb5a7e7cb0d1809542da03d436..5fa9070acd442a50e6fbe1f1696256f324aa7c49 100644 (file)
@@ -440,7 +440,6 @@ int ossl_quic_tx_packetiser_discard_enc_level(OSSL_QUIC_TX_PACKETISER *txp,
     if (enc_level != QUIC_ENC_LEVEL_0RTT)
         txp->args.crypto[ossl_quic_enc_level_to_pn_space(enc_level)] = NULL;
 
-    ossl_qtx_discard_enc_level(txp->args.qtx, enc_level);
     return 1;
 }