ndpi_main: fix Value stored to 'saddr'/'daddr' is never read
This commit is contained in:
@@ -3391,8 +3391,6 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
protocol = flow->packet.iph->protocol;
|
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);
|
if(flow->packet.udp) sport = ntohs(flow->packet.udp->source), dport = ntohs(flow->packet.udp->dest);
|
||||||
|
|||||||
Reference in New Issue
Block a user