Fixed certificate mismatch check

This commit is contained in:
Luca Deri
2022-01-19 23:10:10 +01:00
parent 771b6606c8
commit d91477b18d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}
}