Skip to content

Commit

Permalink
Fix infinite loop in ndpi_workflow_process_packet
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jan 31, 2020
1 parent 579dd7d commit b97360d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/reader_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,8 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow,

if(iph->protocol == IPPROTO_IPV6) {
ip_offset += ip_len;
goto iph_check;
if (ip_len > 0)
goto iph_check;
}

if((frag_off & 0x1FFF) != 0) {
Expand Down

0 comments on commit b97360d

Please sign in to comment.