aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 999a9e017..9dc14eba9 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -468,7 +468,6 @@ check_ipv6_listed (const struct GNUNET_STRINGS_IPv6NetworkPolicy *list,
468 const struct in6_addr *ip) 468 const struct in6_addr *ip)
469{ 469{
470 unsigned int i; 470 unsigned int i;
471 unsigned int j;
472 471
473 if (NULL == list) 472 if (NULL == list)
474 return GNUNET_NO; 473 return GNUNET_NO;
@@ -476,7 +475,7 @@ check_ipv6_listed (const struct GNUNET_STRINGS_IPv6NetworkPolicy *list,
476NEXT: 475NEXT:
477 while (0 != GNUNET_is_zero (&list[i].network)) 476 while (0 != GNUNET_is_zero (&list[i].network))
478 { 477 {
479 for (j = 0; j < sizeof(struct in6_addr) / sizeof(int); j++) 478 for (unsigned int j = 0; j < sizeof(struct in6_addr) / sizeof(int); j++)
480 if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) != 479 if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) !=
481 (((int *) &list[i].network)[j] & ((int *) &list[i].netmask)[j])) 480 (((int *) &list[i].network)[j] & ((int *) &list[i].netmask)[j]))
482 { 481 {