Skip to content

Commit

Permalink
QUIC QRX: Initialise all RXE fields properly for non-encrypted packets
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #21764)
  • Loading branch information
hlandau authored and t8m committed Aug 29, 2023
1 parent c5b882a commit 413a427
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ssl/quic/quic_record_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 413a427

Please sign in to comment.