diff options
author | Luca Deri <deri@ntop.org> | 2017-09-17 23:34:46 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2017-09-17 23:34:46 +0200 |
commit | 1a4e57e7366685e5ece5ed8576155c5e7c934efb (patch) | |
tree | 15df4a8d06bec120e0f68afa3fa57a564725238e /example | |
parent | d6f7dd9c08b8abcaa964f19c3f34c24ed2c558cd (diff) |
Code rework
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpi_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 618a51882..d57e9e90e 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -421,8 +421,8 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl int i, j, n = 0; for(i=0, j = 0; j < sizeof(flow->bittorent_hash)-1; i++) { - sprintf(&flow->bittorent_hash[j], "%02x", flow->ndpi_flow->bittorent_hash[i]); - j += 2, n += flow->ndpi_flow->bittorent_hash[i]; + sprintf(&flow->bittorent_hash[j], "%02x", flow->ndpi_flow->protos.bittorrent.hash[i]); + j += 2, n += flow->ndpi_flow->protos.bittorrent.hash[i]; } if(n == 0) flow->bittorent_hash[0] = '\0'; |