diff options
Diffstat (limited to 'src/util/service.c')
-rw-r--r-- | src/util/service.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/util/service.c b/src/util/service.c index b2e3e89cc..4fd16f93d 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -473,18 +473,12 @@ check_ipv6_listed (const struct GNUNET_STRINGS_IPv6NetworkPolicy *list, | |||
473 | { | 473 | { |
474 | unsigned int i; | 474 | unsigned int i; |
475 | unsigned int j; | 475 | unsigned int j; |
476 | struct in6_addr zero; | ||
477 | 476 | ||
478 | if (NULL == list) | 477 | if (NULL == list) |
479 | return GNUNET_NO; | 478 | return GNUNET_NO; |
480 | memset (&zero, | ||
481 | 0, | ||
482 | sizeof (struct in6_addr)); | ||
483 | i = 0; | 479 | i = 0; |
484 | NEXT: | 480 | NEXT: |
485 | while (0 != memcmp (&zero, | 481 | while (0 != GNUNET_is_zero (&list[i].network)) |
486 | &list[i].network, | ||
487 | sizeof (struct in6_addr))) | ||
488 | { | 482 | { |
489 | for (j = 0; j < sizeof (struct in6_addr) / sizeof (int); j++) | 483 | for (j = 0; j < sizeof (struct in6_addr) / sizeof (int); j++) |
490 | if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) != | 484 | if (((((int *) ip)[j] & ((int *) &list[i].netmask)[j])) != |