-fixing 2114
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 15:11:09 +0000 (15:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 15:11:09 +0000 (15:11 +0000)
src/exit/gnunet-daemon-exit.c

index 04bec763e04880f0f0215efe9facfa3161e1714e..b1d7d0d675a2ac6d04bacec53ee278347d400bc0 100644 (file)
@@ -1416,7 +1416,7 @@ prepare_ipv6_packet (const void *payload, size_t payload_length,
     break;
   case IPPROTO_TCP:
     {
-      struct GNUNET_TUN_TcpHeader *pkt6_tcp = (struct GNUNET_TUN_TcpHeader *) pkt6;
+      struct GNUNET_TUN_TcpHeader *pkt6_tcp = (struct GNUNET_TUN_TcpHeader *) &pkt6[1];
 
       /* memcpy first here as some TCP header fields are initialized this way! */
       memcpy (pkt6_tcp, payload, payload_length);