work on packet processing [changes by tm85]

This commit is contained in:
c0repwn3r 2023-01-28 15:04:49 -05:00
parent 8ba56fb712
commit db827ccd19
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ impl SRTPacket for EncryptedDataPacket {
if bytes[0] != 0x08 {
return Err(PacketParseError::IncorrectPacketType)
}
let data_len = u64::from_le_bytes(bytes[1..9].try_into().unwrap()) as usize;
if bytes.len() < 9 + data_len {