Skip to content

Commit

Permalink
QUIC CONFORMANCE: Stop handling frames after termination
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #21135)
  • Loading branch information
hlandau authored and paulidale committed Jul 16, 2023
1 parent e26dc8e commit 8a6a00e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ssl/quic/quic_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,10 @@ static void ch_rx_handle_packet(QUIC_CHANNEL *ch)

assert(ch->qrx_pkt != NULL);

if (!ossl_quic_channel_is_active(ch))
/* Do not process packets once we are terminating. */
return;

if (ossl_quic_pkt_type_is_encrypted(ch->qrx_pkt->hdr->type)) {
if (!ch->have_received_enc_pkt) {
ch->cur_remote_dcid = ch->init_scid = ch->qrx_pkt->hdr->src_conn_id;
Expand Down

0 comments on commit 8a6a00e

Please sign in to comment.