From 5424d144242c5b85176465acb7376237d80c6d91 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 31 Jan 2025 21:22:47 +0100 Subject: DNS: another fix about the relationship between FPC and subclassification (#2709) See: c669bb314 --- src/lib/ndpi_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 5b5506195..b67244695 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -10343,6 +10343,8 @@ static u_int16_t ndpi_automa_match_string_subprotocol(struct ndpi_detection_modu return(flow->detected_protocol_stack[0]); } + if(!flow && matching_protocol_id != NDPI_PROTOCOL_UNKNOWN) + return matching_protocol_id; #ifdef NDPI_ENABLE_DEBUG_MESSAGES { -- cgit v1.2.3