From 08ca34f5d0fe397a1840fda46a1e14b86fff6ab9 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 23 Nov 2015 10:07:19 +0100 Subject: Fix for #119 --- src/lib/protocols/ssl.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib') 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) -- cgit v1.2.3