projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76dba8d
)
ptoelke: please use this style...
author
Christian Grothoff
<christian@grothoff.org>
Fri, 28 Jan 2011 11:05:01 +0000
(11:05 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 28 Jan 2011 11:05:01 +0000
(11:05 +0000)
src/vpn/gnunet-daemon-exit.c
patch
|
blob
|
history
diff --git
a/src/vpn/gnunet-daemon-exit.c
b/src/vpn/gnunet-daemon-exit.c
index 6d4a3b69f79ed744805205c5f3bd1d124815b58f..08e21509379a8083d8bcf88459730c490ae43454 100644
(file)
--- a/
src/vpn/gnunet-daemon-exit.c
+++ b/
src/vpn/gnunet-daemon-exit.c
@@
-161,8
+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);
- memcpy(&a4.sin_addr.s_addr, (char[]){127, 0, 0, 1}, 4);
-
+ GNUNET_assert (0 == 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);