avoid inet_pton
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 Dec 2010 16:20:30 +0000 (16:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 Dec 2010 16:20:30 +0000 (16:20 +0000)
src/arm/gnunet-service-arm_interceptor.c

index d868adfc5bfecf1c2a81b86f01eea84c4dde923e..7f50ab1f4d20047c6fd9a23c696d23a83753a235 100644 (file)
@@ -865,7 +865,7 @@ start_forwarding (void *cls,
       if ( (strncmp (listen_address, "[::]:", 5) == 0) || (strncmp (listen_address, "::", 2) == 0) )
        {
          memset (&target_ipv6, 0, sizeof (target_ipv6));
-         inet_pton (AF_INET6, "::1", &target_ipv6.sin6_addr);
+         target_ipv6.sin6_addr = in6addr_loopback;
          target_ipv6.sin6_family = AF_INET6;
          target_ipv6.sin6_port = v6->sin6_port;
          v6 = &target_ipv6;