Skip to content

Commit

Permalink
Merge pull request #35 from jeremydub/slice-ie-payloads
Browse files Browse the repository at this point in the history
Specify end of buffer slice for NestedInformationElement
  • Loading branch information
thvdveld authored Jan 17, 2025
2 parents 2a53759 + ef5a7e4 commit e55235b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot15d4-frame/src/repr/ie/payloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl PayloadInformationElementRepr {
let mut offset = 0;
for ie in nested_ies.iter() {
ie.emit(&mut NestedInformationElement::new_unchecked(
&mut buffer[offset..],
&mut buffer[offset..][..ie.buffer_len()],
));
offset += ie.buffer_len();
}
Expand Down

0 comments on commit e55235b

Please sign in to comment.