gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r31788 - gnunet-gtk/src/setup


From: gnunet
Subject: [GNUnet-SVN] r31788 - gnunet-gtk/src/setup
Date: Sat, 4 Jan 2014 03:26:49 +0100

Author: grothoff
Date: 2014-01-04 03:26:49 +0100 (Sat, 04 Jan 2014)
New Revision: 31788

Modified:
   gnunet-gtk/src/setup/gnunet-setup-transport.c
Log:
cast to IPv6 address before using IN6_IS_ADDR_LINKLOCAL to fix #3250

Modified: gnunet-gtk/src/setup/gnunet-setup-transport.c
===================================================================
--- gnunet-gtk/src/setup/gnunet-setup-transport.c       2014-01-04 02:24:26 UTC 
(rev 31787)
+++ gnunet-gtk/src/setup/gnunet-setup-transport.c       2014-01-04 02:26:49 UTC 
(rev 31788)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2010, 2012 Christian Grothoff (and other contributing authors)
+     (C) 2010, 2012, 2013 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -343,7 +343,7 @@
        (0 != memcmp (&in6addr_loopback,
                      &((struct sockaddr_in6 *)addr)->sin6_addr,
                     sizeof (struct in6_addr))) &&
-       (! IN6_IS_ADDR_LINKLOCAL(addr)) )
+       (! IN6_IS_ADDR_LINKLOCAL ((const struct sockaddr_in6*) addr)) )
   {
     *have_v6 = GNUNET_YES;
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]