aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-01-04 02:26:49 +0000
committerChristian Grothoff <christian@grothoff.org>2014-01-04 02:26:49 +0000
commita830bd89d9cf11d193dc8cb041a7176bf9ca8611 (patch)
tree842d83d836ba0432cb7ea7428cac69e9cb913ed4
parented7fd0ff4f415a9e999e13452f5909872712822b (diff)
downloadgnunet-gtk-a830bd89d9cf11d193dc8cb041a7176bf9ca8611.tar.gz
gnunet-gtk-a830bd89d9cf11d193dc8cb041a7176bf9ca8611.zip
cast to IPv6 address before using IN6_IS_ADDR_LINKLOCAL to fix #3250
-rw-r--r--src/setup/gnunet-setup-transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/setup/gnunet-setup-transport.c b/src/setup/gnunet-setup-transport.c
index e593ed2f..c43640b5 100644
--- a/src/setup/gnunet-setup-transport.c
+++ b/src/setup/gnunet-setup-transport.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2010, 2012 Christian Grothoff (and other contributing authors) 3 (C) 2010, 2012, 2013 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -343,7 +343,7 @@ nipo (void *cls, const char *name, int isDefault, const struct sockaddr *addr,
343 (0 != memcmp (&in6addr_loopback, 343 (0 != memcmp (&in6addr_loopback,
344 &((struct sockaddr_in6 *)addr)->sin6_addr, 344 &((struct sockaddr_in6 *)addr)->sin6_addr,
345 sizeof (struct in6_addr))) && 345 sizeof (struct in6_addr))) &&
346 (! IN6_IS_ADDR_LINKLOCAL(addr)) ) 346 (! IN6_IS_ADDR_LINKLOCAL ((const struct sockaddr_in6*) addr)) )
347 { 347 {
348 *have_v6 = GNUNET_YES; 348 *have_v6 = GNUNET_YES;
349 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 349 GNUNET_log (GNUNET_ERROR_TYPE_INFO,