ndpi_main: fix Value stored to 'saddr'/'daddr' is never read

ndpi_main.c:3286:7: warning: Value stored to 'saddr' is never read
ndpi_main.c:3290:7: warning: Value stored to 'saddr' is never read
ndpi_main.c:3291:7: warning: Value stored to 'daddr' is never read
This commit is contained in:
Alexis La Goutte
2016-05-26 19:52:25 +02:00
parent 67d3c9e9c8
commit f0c1688b1b
-10
View File
@@ -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) {