checkret
authorChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:37:34 +0000 (20:37 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 16 Jul 2011 20:37:34 +0000 (20:37 +0000)
src/arm/gnunet-service-arm_interceptor.c

index a9274c90ef4b22eaff9fc492c485ac435acdb311..237b9bf95a750f019ac0625e08baf1ab30278a3d 100644 (file)
@@ -846,7 +846,10 @@ start_forwarding (void *cls,
        {
          /* connect to [::1] and 127.0.0.1 instead of [::] and 0.0.0.0 */
          memset (&target_ipv4, 0, sizeof (target_ipv4));
-         inet_pton (AF_INET, "127.0.0.1", &target_ipv4.sin_addr);
+         GNUNET_assert (1 == 
+                        inet_pton (AF_INET, 
+                                   "127.0.0.1",
+                                   &target_ipv4.sin_addr));
          target_ipv4.sin_family = AF_INET;
          target_ipv4.sin_port = v4->sin_port;
          v4 = &target_ipv4;