-fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 22:05:55 +0000 (22:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 22:05:55 +0000 (22:05 +0000)
src/exit/gnunet-daemon-exit.c

index f9fdd82c2b86be7df06cb497d9568d4b6655be38..720a0ade4d49bb23f11b6072bd8d4aa9b00a1637 100644 (file)
@@ -1038,7 +1038,7 @@ message_token (void *cls GNUNET_UNUSED, void *client GNUNET_UNUSED,
        return;
       }
       pkt6 = (struct GNUNET_TUN_IPv6Header *) &pkt_tun[1];
-      if (size != ntohs (pkt6->payload_length))
+      if (size != ntohs (pkt6->payload_length) + sizeof (struct GNUNET_TUN_IPv6Header))
       {
        /* Kernel to blame? */
        GNUNET_break (0);