Add check for VersionNegotiation in packet header

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
pull/16511/head
jiangshaoqi 6 hours ago committed by GitHub
parent d4db6081ff
commit c5b7b855b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save