Skip to content

Commit

Permalink
fixed ssl/tor bug for #147
Browse files Browse the repository at this point in the history
  • Loading branch information
Campus committed Feb 15, 2016
1 parent 16a5c69 commit 392a142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/tor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 392a142

Please sign in to comment.