Skip to content

Commit

Permalink
discard frames only if caplen is less then reported
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Feb 19, 2023
1 parent cc17b7b commit 44bfe43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atxDepack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ static void callback_handler(u_char *user __attribute__((unused)),
/*
* No way to do something with truncated packet
*/
if (caplen != len)
if (caplen < len)
return;

if (datalink == DLT_LINUX_SLL)
Expand Down

0 comments on commit 44bfe43

Please sign in to comment.