mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-23 03:35:14 +00:00
Remove redundant/illegal handshake packet frame handling
This commit is contained in:
committed by
Dirkjan Ochtman
parent
fd1d798a81
commit
3e8e32a80e
@@ -1081,10 +1081,6 @@ impl Connection {
|
||||
Frame::Crypto(frame) => {
|
||||
self.read_tls(&frame)?;
|
||||
}
|
||||
Frame::Stream(frame::Stream { .. }) => {
|
||||
debug!(self.log, "stream frame in handshake");
|
||||
return Err(TransportError::PROTOCOL_VIOLATION.into());
|
||||
}
|
||||
Frame::Ack(ack) => {
|
||||
self.on_ack_received(now, ack);
|
||||
}
|
||||
@@ -1107,9 +1103,6 @@ impl Connection {
|
||||
self.state = State::Draining;
|
||||
return Ok(());
|
||||
}
|
||||
Frame::PathChallenge(value) => {
|
||||
self.crypto_pending.path_challenge(number.unwrap(), value);
|
||||
}
|
||||
_ => {
|
||||
debug!(self.log, "unexpected frame type in handshake"; "type" => %frame.ty());
|
||||
return Err(TransportError::PROTOCOL_VIOLATION.into());
|
||||
|
||||
Reference in New Issue
Block a user