diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2016-05-28 09:06:34 +0200 |
---|---|---|
committer | Luca Deri <lucaderi@users.noreply.github.com> | 2016-05-28 09:06:34 +0200 |
commit | db36040fe192ba1161980d52693a1ab1fd26a43a (patch) | |
tree | aba0924b087fd85d8b15875d14bff49f595a18dd | |
parent | 67d3c9e9c8e7c975189b718905c5dddbd961b681 (diff) | |
parent | f0c1688b1b26e657a8ddb81ef5ce9b44f3e9782f (diff) |
Merge pull request #207 from alagoutte/scan-build
ndpi_main: fix Value stored to 'saddr'/'daddr' is never read
-rw-r--r-- | src/lib/ndpi_main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 070492cf7..2c4b491ed 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3281,16 +3281,6 @@ ndpi_protocol ndpi_l4_detection_process_packet(struct ndpi_detection_module_stru flow->protocol_id_already_guessed = 1; -#ifdef NDPI_DETECTION_SUPPORT_IPV6 - if(flow->packet.iphv6 != NULL) { - saddr = 0, daddr = 0; - } else -#endif - { - saddr = ntohl(flow->packet.iph->saddr); - daddr = ntohl(flow->packet.iph->daddr); - } - flow->guessed_protocol_id = (int16_t)ndpi_guess_protocol_id(ndpi_struct, l4_proto, sport, dport); if(flow->packet.iph) { |