aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tor.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2016-10-03 14:36:51 +0200
committerCampus <campus@ntop.org>2016-10-03 14:36:51 +0200
commit7e8e243e68bc6bc4d979e03887d57d75fd36f00b (patch)
treef3aee961eccb4b6a7bfef71773eb390ae25605a2 /src/lib/protocols/tor.c
parentcf470ec03825fcd4deb58b4c43b39595dd044125 (diff)
fix check for issue https://github.com/ntop/nDPI/issues/272
Diffstat (limited to 'src/lib/protocols/tor.c')
-rw-r--r--src/lib/protocols/tor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/protocols/tor.c b/src/lib/protocols/tor.c
index 2152da328..c9ab55542 100644
--- a/src/lib/protocols/tor.c
+++ b/src/lib/protocols/tor.c
@@ -5,8 +5,6 @@
* Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr>
*
*/
-
-
#include "ndpi_api.h"
#ifdef NDPI_PROTOCOL_TOR
@@ -19,6 +17,7 @@ static void ndpi_int_tor_add_connection(struct ndpi_detection_module_struct
int ndpi_is_ssl_tor(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow, char *certificate) {
+
int prev_num = 0, numbers_found = 0, num_found = 0, i, len;
char dummy[48], *dot, *name;