From 495abb49b6a4f803c5f0e9eb59e4f12c3f2cfe8b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 26 Jan 2012 16:12:07 +0000 Subject: [PATCH] -check tcp off value --- src/vpn/gnunet-service-vpn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 7b29cbbd4..51b080266 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c @@ -892,7 +892,7 @@ route_packet (struct DestinationEntry *destination, { /* blame kernel? */ GNUNET_break (0); - return; + return GNUNET_SYSERR; } udp = payload; if (udp->len < sizeof (struct GNUNET_TUN_UdpHeader)) @@ -917,7 +917,7 @@ route_packet (struct DestinationEntry *destination, { /* blame kernel? */ GNUNET_break (0); - return; + return GNUNET_SYSERR; } tcp = payload; if (tcp->off * 4 < sizeof (struct GNUNET_TUN_TcpHeader)) -- 2.25.1