aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-05-23 22:21:50 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-05-23 22:21:50 +0200
commit1b3055faefafe24cc21ede48ebc2ad67a022495e (patch)
tree6e24906213f64e5c37503c850f8bcb7d22ae34b6
parentcf905d0c7f531236697a9ca4784570b03375e160 (diff)
ndpi_main: fix Value stored to 'saddr'/'daddr' is never read
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 221c073fd..db1543807 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -3391,8 +3391,6 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
#endif
{
protocol = flow->packet.iph->protocol;
- saddr = ntohl(flow->packet.iph->saddr);
- daddr = ntohl(flow->packet.iph->daddr);
}
if(flow->packet.udp) sport = ntohs(flow->packet.udp->source), dport = ntohs(flow->packet.udp->dest);