diff options
author | Campus <campus@ntop.org> | 2016-02-15 11:02:40 +0100 |
---|---|---|
committer | Campus <campus@ntop.org> | 2016-02-15 11:02:40 +0100 |
commit | 392a14241fa68512099ea6096a640275461af7d0 (patch) | |
tree | d935e7f075be5666f64202bf6eb4539cb349af89 /src/lib/protocols/tor.c | |
parent | 16a5c6995c99a7191e3d4749b1a6c9467f8c3cee (diff) |
fixed ssl/tor bug for https://github.com/ntop/nDPI/issues/147
Diffstat (limited to 'src/lib/protocols/tor.c')
-rw-r--r-- | src/lib/protocols/tor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/tor.c b/src/lib/protocols/tor.c index f2c2eae4c..f53e5da66 100644 --- a/src/lib/protocols/tor.c +++ b/src/lib/protocols/tor.c @@ -24,7 +24,7 @@ int ndpi_is_ssl_tor(struct ndpi_detection_module_struct *ndpi_struct, if((certificate == NULL) || (strlen(certificate) < 6) - || strncmp(certificate, "www.", 4)) + || !(strncmp(certificate, "www.", 4))) return(0); // printf("***** [SSL] %s(): %s\n", __FUNCTION__, certificate); |