Closed vel21ripn closed 3 years ago
Great catch!! That code has been quite tricky: this is the third bug found there, after 2a6532188 and 78b1295dc. It is not obvious (to me) which fields should be restored (all the fields about current packet dissection?) but your list seems fine
@IvanNardi I found bug! ndpi_main.c:4234 ndpi_init_packet_header()
After executing memset(flow, 0, sizeof(*(flow))) we did not restore the flow->packet.iph, flow->packet.iphv6 and many another fields (payload, current_time_ms, l3_packet_len, l4_packet_len, payload_packet_len, l4_protocol). The protocol tinc is not ready for this case.