From c5b7b855b84445927ae61d85e2ba3c4c732d9e03 Mon Sep 17 00:00:00 2001 From: jiangshaoqi <48098845+jiangshaoqi@users.noreply.github.com> Date: Mon, 26 Oct 2026 12:41:30 -0400 Subject: [PATCH] Add check for VersionNegotiation in packet header Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- rust/src/quic/quic.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/src/quic/quic.rs b/rust/src/quic/quic.rs index 8b96d4a147..bd03aa7cc9 100644 --- a/rust/src/quic/quic.rs +++ b/rust/src/quic/quic.rs @@ -266,7 +266,8 @@ impl QuicState { if header.ty != QuicType::Initial { // Non-Initial packets cannot introduce a connection. A CID // learned only from encrypted 1-RTT traffic is also unknown here. - if !header.version.is_gquic() + if header.ty != QuicType::VersionNegotiation + && !header.version.is_gquic() && !self.connections.is_empty() && !self .connections