diff options
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 187081c1d..14eb06062 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4619,7 +4619,7 @@ static int ndpi_init_packet(struct ndpi_detection_module_struct *ndpi_str, packet->current_time_ms = current_time_ms; - packet->iph = (struct ndpi_iphdr *)packet_data; + packet->iph = (const struct ndpi_iphdr *)packet_data; /* reset payload_packet_len, will be set if ipv4 tcp or udp */ packet->payload = NULL; |