diff options
author | Luca Deri <deri@ntop.org> | 2022-01-19 23:10:10 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-01-19 23:10:10 +0100 |
commit | d91477b18d5a69c2951c1c60ca5076978407678f (patch) | |
tree | b6d1a15cfd409de46061b410b96626c6b176f1f2 /src/lib/protocols | |
parent | 771b6606c8ebdc46dca7d1c128c93c9c5d3ed783 (diff) |
Fixed certificate mismatch check
Diffstat (limited to 'src/lib/protocols')
-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; } } |