From 3e8e32a80ef4b890eaffe76acf26f677962677cd Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Wed, 26 Dec 2018 13:02:39 -0800 Subject: [PATCH] Remove redundant/illegal handshake packet frame handling --- quinn-proto/src/connection.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/quinn-proto/src/connection.rs b/quinn-proto/src/connection.rs index 5973813d4..3a7cf6b48 100644 --- a/quinn-proto/src/connection.rs +++ b/quinn-proto/src/connection.rs @@ -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());