Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions quinn-proto/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,14 @@ impl Endpoint {
} else if !event.first_decode.is_initial()
&& self.local_cid_generator.validate(dst_cid).is_err()
{
// If we got this far, we're receiving a seemingly valid packet for an unknown
// connection. Send a stateless reset if possible.

debug!("dropping packet with invalid CID");
None
} else if dst_cid.is_empty() {
trace!("dropping unrecognized short packet without ID");
None
} else {
// If we got this far, we're receiving a seemingly valid packet for an unknown
// connection. Send a stateless reset if possible.
self.stateless_reset(now, datagram_len, addresses, *dst_cid, buf)
.map(DatagramEvent::Response)
}
Expand Down
Loading