From 392a14241fa68512099ea6096a640275461af7d0 Mon Sep 17 00:00:00 2001 From: Campus Date: Mon, 15 Feb 2016 11:02:40 +0100 Subject: fixed ssl/tor bug for https://github.com/ntop/nDPI/issues/147 --- src/lib/protocols/tor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/protocols/tor.c') 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); -- cgit v1.2.3