diff options
author | Michele Campus <fci1908@gmail.com> | 2017-10-02 00:45:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 00:45:17 +0200 |
commit | 82c244b04f06aa336cb521f68d2ecb010c3a4780 (patch) | |
tree | 4b643d80f0343baf682ef60710ead773882237c1 /src | |
parent | 1b162234f0d1e72ccffc546f9ca84d41864f6656 (diff) | |
parent | f80f0eedc0d17740e95558252be2f46a13ab0461 (diff) |
Merge pull request #466 from vel21ripn/dev-fixerr
Fix error: Use of uninitialized structures in tcp_udp.c
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); |