fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 2 Feb 2011 07:52:33 +0000 (07:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 2 Feb 2011 07:52:33 +0000 (07:52 +0000)
src/vpn/gnunet-daemon-exit.c

index 08e21509379a8083d8bcf88459730c490ae43454..ba382a16cc962e943e8242452953ca0d6e1f8d9c 100644 (file)
@@ -161,7 +161,7 @@ send_to_network (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   memset(&a4, 0, sizeof(struct sockaddr_in));
   a4.sin_family = AF_INET;
   a4.sin_port = htons(data->state.dpt);
-  GNUNET_assert (0 == inet_pton (AF_INET, "127.0.0.1", &a4.sin_addr));
+  GNUNET_assert (1 == inet_pton (AF_INET, "127.0.0.1", &a4.sin_addr));
   GNUNET_NETWORK_socket_sendto (data->sock, pkt + 1,
                                ntohs (pkt->len) - sizeof (struct udp_pkt),
                                (struct sockaddr*)&a4, sizeof a4);