aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2016-02-15 12:00:56 +0100
committerLuca Deri <deri@ntop.org>2016-02-15 12:00:56 +0100
commite1481f3a904d377f5163cd16860437958668c6d4 (patch)
tree6fd7c44a384271c22e660c226c20b03d0e73f0ea
parent01413c8d9fb52e94eb064dd519512e3ee93a3bf3 (diff)
parent392a14241fa68512099ea6096a640275461af7d0 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
-rw-r--r--src/lib/protocols/tor.c2
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);