diff options
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 8546c427e..c340884a3 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1616,7 +1616,8 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow, datalink_check: - if(header->caplen < eth_offset + 40) + // 20 for min iph and 8 for min UDP + if(header->caplen < eth_offset + 28) return(nproto); /* Too short */ switch(datalink_type) { |