QUIC TXP: Make TXP use time callback correctly

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21029)
This commit is contained in:
Hugo Landau 2023-05-23 12:23:06 +01:00 committed by Pauli
parent e3e9794aa4
commit b98c38d40a

View File

@ -2197,7 +2197,7 @@ static int txp_generate_for_el_actual(OSSL_QUIC_TX_PACKETISER *txp,
tpkt->ackm_pkt.is_ack_eliciting = have_ack_eliciting; tpkt->ackm_pkt.is_ack_eliciting = have_ack_eliciting;
tpkt->ackm_pkt.is_pto_probe = 0; tpkt->ackm_pkt.is_pto_probe = 0;
tpkt->ackm_pkt.is_mtu_probe = 0; tpkt->ackm_pkt.is_mtu_probe = 0;
tpkt->ackm_pkt.time = ossl_time_now(); tpkt->ackm_pkt.time = txp->args.now(txp->args.now_arg);
/* Packet Information for QTX */ /* Packet Information for QTX */
pkt.hdr = phdr; pkt.hdr = phdr;