Merge pull request #729 from Fate-JH/reset-seq

ResetSequence 1
This commit is contained in:
Fate-JH 2021-03-23 14:10:56 -04:00 committed by GitHub
commit aac2100f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,6 +176,8 @@ object PacketCoding {
if (flags.secured && crypto.isEmpty) {
return Failure(Err("Unsupported packet type: crypto packets must be unencrypted"))
}
case PacketType.ResetSequence =>
return Failure(Err(s"Caught a wild ResetSequence when cryptoState is ${crypto.nonEmpty}: $msg -> $flags and $remainder"))
case _ =>
return Failure(Err(s"Unsupported packet type: ${flags.packetType.toString}"))
}