diff options
author | Vitaly Lavrov <vel21ripn@gmail.com> | 2017-10-01 22:43:20 +0300 |
---|---|---|
committer | Vitaly Lavrov <vel21ripn@gmail.com> | 2017-10-01 22:43:20 +0300 |
commit | f80f0eedc0d17740e95558252be2f46a13ab0461 (patch) | |
tree | 6648c0f14a9cc1b4c9b9177206c0f45ddc73dc64 /src | |
parent | b2f0558080d767ed0680c16b68aa35449aef91dc (diff) |
Fix error: Use of uninitialized structures in tcp_udp.c
Now the test results do not depend on the compiler optimization level and architecture.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/tcp_udp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/protocols/tcp_udp.c b/src/lib/protocols/tcp_udp.c index 605ba54c3..f7e8c9ac1 100644 --- a/src/lib/protocols/tcp_udp.c +++ b/src/lib/protocols/tcp_udp.c @@ -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); |