aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-01-31 21:22:47 +0100
committerGitHub <noreply@github.com>2025-01-31 21:22:47 +0100
commit5424d144242c5b85176465acb7376237d80c6d91 (patch)
treef1424d83de9f1f88b0dc197f521fc01613da923a /src/lib
parent71bd58532ad6648b5b80669bd992d6918ad9b69c (diff)
DNS: another fix about the relationship between FPC and subclassification (#2709)
See: c669bb314
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 2 insertions, 0 deletions
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
{