aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/ssl.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2015-11-23 10:07:19 +0100
committerLuca Deri <deri@ntop.org>2015-11-23 10:07:19 +0100
commit08ca34f5d0fe397a1840fda46a1e14b86fff6ab9 (patch)
treeac0f2a9889113848c25031499e31493593500841 /src/lib/protocols/ssl.c
parenta46c12c01486f084e6474701c973f004fbaf5bcb (diff)
Fix for #119
Diffstat (limited to 'src/lib/protocols/ssl.c')
-rw-r--r--src/lib/protocols/ssl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/protocols/ssl.c b/src/lib/protocols/ssl.c
index b113bf197..bc0aa4f3c 100644
--- a/src/lib/protocols/ssl.c
+++ b/src/lib/protocols/ssl.c
@@ -288,8 +288,6 @@ int getSSLcertificate(struct ndpi_detection_module_struct *ndpi_struct,
int sslDetectProtocolFromCertificate(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
struct ndpi_packet_struct *packet = &flow->packet;
- if(!packet->iph /* IPv4 */) return(-1);
-
if((packet->payload_packet_len > 9)
&& (packet->payload[0] == 0x16 /* consider only specific SSL packets (handshake) */)) {
if((packet->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN)