From: Christian Grothoff Date: Wed, 2 Feb 2011 07:52:33 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~19219 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aefe648c889dd71ba942ccb235fe9eec477f2b53;p=oweals%2Fgnunet.git fix --- diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c index 08e215093..ba382a16c 100644 --- a/src/vpn/gnunet-daemon-exit.c +++ b/src/vpn/gnunet-daemon-exit.c @@ -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);