Skip to content

Commit

Permalink
DNS: fix TTL check and sync unit test results (ntop#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi authored Jun 14, 2022
1 parent defe7d7 commit 8dcaa5c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion src/lib/protocols/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ static int search_valid_dns(struct ndpi_detection_module_struct *ndpi_struct,
} else
x += data_len;

if((x+2) >= packet->payload_packet_len) {
if((x+8) >= packet->payload_packet_len) {
break;
}

Expand Down
Loading

0 comments on commit 8dcaa5c

Please sign in to comment.