aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-transport.c')
-rw-r--r--src/setup/gnunet-setup-transport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index 08cc39d9..e593ed2f 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -340,8 +340,9 @@ nipo (void *cls, const char *name, int isDefault, const struct sockaddr *addr,
340 if (!isDefault) 340 if (!isDefault)
341 return GNUNET_OK; 341 return GNUNET_OK;
342 if ( (sizeof (struct sockaddr_in6) == addrlen) && 342 if ( (sizeof (struct sockaddr_in6) == addrlen) &&
343 (0 != memcmp (&in6addr_loopback, addr, 343 (0 != memcmp (&in6addr_loopback,
344 addrlen)) && 344 &((struct sockaddr_in6 *)addr)->sin6_addr,
345 sizeof (struct in6_addr))) &&
345 (! IN6_IS_ADDR_LINKLOCAL(addr)) ) 346 (! IN6_IS_ADDR_LINKLOCAL(addr)) )
346 { 347 {
347 *have_v6 = GNUNET_YES; 348 *have_v6 = GNUNET_YES;