-actually copy payload
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 22:43:50 +0000 (22:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 22:43:50 +0000 (22:43 +0000)
src/vpn/gnunet-service-vpn.c

index be0760bce1718ac19871bdac4a0eb6b2a7f7c394..a32e739d2f5976187e79518761e17af611328a48 100644 (file)
@@ -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,