Fix error: Use of uninitialized structures in tcp_udp.c

Now the test results do not depend on the compiler optimization level and architecture.
This commit is contained in:
Vitaly Lavrov 2017-10-01 22:43:20 +03:00
parent b2f0558080
commit f80f0eedc0

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);