fix indentation ssl.c

This commit is contained in:
Campus
2016-08-22 12:03:56 +02:00
parent 45f8f72bae
commit b34d418b57
+3 -1
View File
@@ -48,6 +48,7 @@ static u_int32_t ndpi_ssl_refine_master_protocol(struct ndpi_detection_module_st
if(packet->tcp != NULL) { if(packet->tcp != NULL) {
switch(protocol) { switch(protocol) {
case NDPI_PROTOCOL_SSL: case NDPI_PROTOCOL_SSL:
case NDPI_PROTOCOL_SSL_NO_CERT: case NDPI_PROTOCOL_SSL_NO_CERT:
{ {
@@ -58,7 +59,8 @@ static u_int32_t ndpi_ssl_refine_master_protocol(struct ndpi_detection_module_st
u_int16_t sport = ntohs(packet->tcp->source); u_int16_t sport = ntohs(packet->tcp->source);
u_int16_t dport = ntohs(packet->tcp->dest); u_int16_t dport = ntohs(packet->tcp->dest);
if((sport == 465) || (dport == 465)) protocol = NDPI_PROTOCOL_MAIL_SMTPS; if((sport == 465) || (dport == 465))
protocol = NDPI_PROTOCOL_MAIL_SMTPS;
else if((sport == 993) || (dport == 993) else if((sport == 993) || (dport == 993)
#ifdef NDPI_PROTOCOL_MAIL_IMAP #ifdef NDPI_PROTOCOL_MAIL_IMAP
|| (flow->l4.tcp.mail_imap_starttls) || (flow->l4.tcp.mail_imap_starttls)