Merge pull request #466 from vel21ripn/dev-fixerr

Fix error: Use of uninitialized structures in tcp_udp.c
This commit is contained in:
Michele Campus 2017-10-02 00:45:17 +02:00 committed by GitHub
commit 82c244b04f

View file

@ -42,6 +42,7 @@ u_int ndpi_search_tcp_or_udp_raw(struct ndpi_detection_module_struct *ndpi_struc
if(flow)
return(flow->guessed_host_protocol_id);
else {
host.s_addr = htonl(saddr);
if((rc = ndpi_network_ptree_match(ndpi_struct, &host)) != NDPI_PROTOCOL_UNKNOWN)
return (rc);