diff options
author | Michele Campus <fci1908@gmail.com> | 2017-05-18 10:06:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 10:06:12 +0200 |
commit | 2b128a2f1bfbb1dcd46b5a9d692c792c42212b99 (patch) | |
tree | 278042bcd5afe4a894b145af12b7f996ef583c45 /src | |
parent | 724d1829399c6281aa7f6dd5f3b7f965d12be43b (diff) | |
parent | f4bba23ba79bef30957b67ad155d424d920421bc (diff) |
Merge pull request #380 from pavlosantoniou/dev
Use correct subscripts when checking IP array in ndpi_main.c
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 1ef83dcc7..80ad78183 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4277,8 +4277,8 @@ char *ndpi_get_ip_string(struct ndpi_detection_module_struct *ndpi_struct, #ifdef NDPI_DETECTION_SUPPORT_IPV6 if(ip->ipv6.u6_addr.u6_addr32[0] != 0 || ip->ipv6.u6_addr.u6_addr32[1] != 0 || - ip->ipv6.u6_addr.u6_addr32[1] != 0 || - ip->ipv6.u6_addr.u6_addr32[1] != 0) { + ip->ipv6.u6_addr.u6_addr32[2] != 0 || + ip->ipv6.u6_addr.u6_addr32[3] != 0) { const u_int16_t *b = ip->ipv6.u6_addr.u6_addr16; snprintf(ndpi_struct->ip_string, 32, "%x:%x:%x:%x:%x:%x:%x:%x", |