From 2dfc478ad476bdb3f774fe83ad90ccd6aa4ff7c3 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Wed, 6 Oct 2021 18:32:15 +0200 Subject: Fix compilation with clang-13 or if some debug macros are enabled (#1326) --- src/lib/protocols/stun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols/stun.c') diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index 19129165b..f91be68b2 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -86,7 +86,7 @@ void ndpi_int_stun_add_connection(struct ndpi_detection_module_struct *ndpi_stru #ifdef DEBUG_LRU printf("[LRU] ADDING %u / %u.%u [%u -> %u]\n", key, proto, app_proto, - ntohs(flow->packet.udp->source), ntohs(flow->packet.udp->dest)); + ntohs(packet->udp->source), ntohs(packet->udp->dest)); #endif ndpi_lru_add_to_cache(ndpi_struct->stun_cache, key, app_proto); -- cgit v1.2.3