Skip to content

Commit

Permalink
ignore packets if rth->it_le >= caplen
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Sep 6, 2024
1 parent 442242b commit cb2e316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcxpcapngtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -4875,7 +4875,7 @@ if(linktype == DLT_IEEE802_11_RADIO)
rth->it_len = byte_swap_16(rth->it_len);
rth->it_present = byte_swap_32(rth->it_present);
#endif
if(rth->it_len > caplen)
if(rth->it_len >= caplen)
{
pcapreaderrors++;
radiotaperrorcount++;
Expand Down

0 comments on commit cb2e316

Please sign in to comment.