Fix minimum packet length condition (#1087)

This commit is contained in:
Zied Aouini
2020-12-12 11:12:59 +01:00
committed by GitHub
parent 74a77e7b3d
commit 5bd5461f96
+2 -1
View File
@@ -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) {