Compilation fix

This commit is contained in:
Luca Deri
2019-07-12 07:24:07 +02:00
parent 4ac60d88d7
commit 563215a05e
+2 -1
View File
@@ -4545,8 +4545,9 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
if(flow->packet.tcp && (ret.master_protocol == NDPI_PROTOCOL_UNKNOWN)) {
/* Minimal guess for HTTP/SSL-based protocols */
int i;
for(int i=0; i<2; i++) {
for(i=0; i<2; i++) {
u_int16_t port = (i == 0) ? ntohs(flow->packet.tcp->dest) : ntohs(flow->packet.tcp->source);
switch(port) {