diff options
Diffstat (limited to 'src/lib/protocols/hangout.c')
-rw-r--r-- | src/lib/protocols/hangout.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/protocols/hangout.c b/src/lib/protocols/hangout.c index fc94aad5f..a9b63a021 100644 --- a/src/lib/protocols/hangout.c +++ b/src/lib/protocols/hangout.c @@ -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); } } |