Skip to content

Commit 4903a28

Browse files
authored
Update packet.rs (#67)
1 parent 50f0cd3 commit 4903a28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/packet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ macro_rules! impl_e131_root_layer {
619619
}
620620
VECTOR_ROOT_E131_EXTENDED => {
621621
let data_buf = &buf[E131_CID_END_INDEX .. length];
622-
let PduInfo { length, vector} = pdu_info(&data_buf, E131_FRAMING_LAYER_VECTOR_LENGTH)?;
623-
if buf.len() < length {
622+
let PduInfo { length, vector} = pdu_info(data_buf, E131_FRAMING_LAYER_VECTOR_LENGTH)?;
623+
if data_buf.len() < length {
624624
return Err(SacnError::SacnParsePackError(
625625
ParsePacketError::ParseInsufficientData(
626626
"Buffer contains insufficient data based on E131 framing layer pdu length field".to_string(),

0 commit comments

Comments
 (0)