From: Christian Grothoff Date: Thu, 26 Jan 2012 22:05:55 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~15053 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a47d02b5c946fbed31215a9b754b714cd563174;p=oweals%2Fgnunet.git -fix --- diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index f9fdd82c2..720a0ade4 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c @@ -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);