From: Hugo Landau Date: Tue, 6 Jun 2023 15:25:12 +0000 (+0100) Subject: QUIC CONFORMANCE: Stop handling frames after termination X-Git-Tag: openssl-3.2.0-alpha1~431 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6a00e3b8108c51e0facf30d2942176e72ad079;p=thirdparty%2Fopenssl.git QUIC CONFORMANCE: Stop handling frames after termination Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/21135) --- diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index 30b5faf24b1..d24e6e182d1 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -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;