Commit f3fd4c55 authored by PFELAVALESIEA's avatar PFELAVALESIEA Committed by GitHub
Browse files

Fix chilli.c check if the flag MF is set or not

parent da0047fd
......@@ -2687,7 +2687,7 @@ int cb_tun_ind(struct tun_t *tun, struct pkt_buffer *pb, int idx) {
if (iphdr_offset((struct pkt_iphdr_t*)ipph) == 0) {
udph = (struct pkt_udphdr_t *)(((void *)ipph) + hlen);
}
if (udph && (ntohs(udph->len) > ip_len)) {
if (udph && !iphdr_more_frag((struct pkt_iphdr_t*)ipph) && (ntohs(udph->len) > ip_len)) {
if (_options.debug)
syslog(LOG_DEBUG, "%s(%d): invalid UDP packet %d / %d / %zu", __FUNCTION__, __LINE__,
ntohs(ipph->tot_len),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment