From d91477b18d5a69c2951c1c60ca5076978407678f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 19 Jan 2022 23:10:10 +0100 Subject: Fixed certificate mismatch check --- src/lib/protocols/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 600346b83..b5a0bb1cb 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -568,7 +568,7 @@ static void processCertificateElements(struct ndpi_detection_module_struct *ndpi if(label != NULL) { char * first_dot = strchr(flow->host_server_name, '.'); - if(first_dot == NULL || first_dot >= label) { + if((first_dot == NULL) || (first_dot <= label)) { matched_name = 1; } } -- cgit v1.2.3