diff options
author | Luca Deri <deri@ntop.org> | 2019-07-12 07:24:07 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-07-12 07:24:07 +0200 |
commit | 563215a05ee1d5a5ad5d72b749f8607f58e14c67 (patch) | |
tree | cd0abd76375291dcfe136efa18276754f9256610 | |
parent | 4ac60d88d754da4058bb9dfdc7507be7243ba7fc (diff) |
Compilation fix
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index ee3baf2aa..bb9b6de5a 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -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) { |