From: Christian Grothoff Date: Thu, 26 Jan 2012 22:43:50 +0000 (+0000) Subject: -actually copy payload X-Git-Tag: initial-import-from-subversion-38251~15050 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7fa0f587def7a1f3b27772fed17302872cb7ac3e;p=oweals%2Fgnunet.git -actually copy payload --- diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index be0760bce..a32e739d2 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c @@ -2286,8 +2286,11 @@ receive_tcp_back (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel, tcp->dpt = htons (ts->source_port); GNUNET_TUN_calculate_tcp6_checksum (ipv6, tcp, - &tcp[1], + &data[1], mlen); + memcpy (&tcp[1], + &data[1], + mlen); (void) GNUNET_HELPER_send (helper_handle, msg, GNUNET_YES,