diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |