aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-08-02 07:34:51 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-08-02 07:34:51 +0000
commit02588b1ce6b6a00377f69c7c717c516d795774c4 (patch)
tree8f54c445d7399ed7595b69ce6a255b30b2e58e43 /src/vpn
parentf980d0ca87334ef66274cff36d8a14db49964c32 (diff)
downloadgnunet-02588b1ce6b6a00377f69c7c717c516d795774c4.tar.gz
gnunet-02588b1ce6b6a00377f69c7c717c516d795774c4.zip
Bug. fill the complete IP-Address
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-daemon-vpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index 25fa04c97..1e1e957d8 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -453,7 +453,7 @@ new_ip4addr_remote (unsigned char *buf, unsigned char *addr, char addrlen)
453 else 453 else
454 GNUNET_assert(0); 454 GNUNET_assert(0);
455 455
456 memcpy (buf + c, addr, GNUNET_MIN (addrlen, c)); 456 memcpy (buf + c, addr, GNUNET_MIN (addrlen, 4-c));
457} 457}
458/*}}}*/ 458/*}}}*/
459 459