Fixes #741
This commit is contained in:
@@ -62,8 +62,12 @@ static u_int8_t is_google_flow(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
struct ndpi_packet_struct *packet = &flow->packet;
|
||||
|
||||
if(packet->iph) {
|
||||
if(google_ptree_match(ndpi_struct, (struct in_addr *)&packet->iph->saddr)
|
||||
|| google_ptree_match(ndpi_struct, (struct in_addr *)&packet->iph->daddr)) {
|
||||
struct in_addr saddr, daddr;
|
||||
|
||||
saddr.s_addr = packet->iph->saddr, daddr.s_addr = packet->iph->daddr;
|
||||
|
||||
if(google_ptree_match(ndpi_struct, &saddr)
|
||||
|| google_ptree_match(ndpi_struct, &daddr)) {
|
||||
return(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user