diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-08-17 18:31:15 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-08-29 15:33:22 +0200 |
commit | 413a427c2a7743474f57d5799f42de5357ceace2 (patch) | |
tree | 80b0a491d18ab52cb68e038d7e358866b662e8e2 /ssl/quic | |
parent | c5b882a80b9f5811e45e29f4492bf335e870eb35 (diff) |
QUIC QRX: Initialise all RXE fields properly for non-encrypted packets
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21764)
Diffstat (limited to 'ssl/quic')
-rw-r--r-- | ssl/quic/quic_record_rx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ssl/quic/quic_record_rx.c b/ssl/quic/quic_record_rx.c index bb94d3085e..e4705a1cce 100644 --- a/ssl/quic/quic_record_rx.c +++ b/ssl/quic/quic_record_rx.c @@ -873,6 +873,13 @@ static int qrx_process_pkt(OSSL_QRX *qrx, QUIC_URXE *urxe, rxe->hdr.data = rxe_data(rxe); rxe->pn = QUIC_PN_INVALID; + rxe->data_len = rxe->hdr.len; + rxe->datagram_len = datagram_len; + rxe->key_epoch = 0; + rxe->peer = urxe->peer; + rxe->local = urxe->local; + rxe->time = urxe->time; + /* Move RXE to pending. */ ossl_list_rxe_remove(&qrx->rx_free, rxe); ossl_list_rxe_insert_tail(&qrx->rx_pending, rxe); |