-check tcp off value
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 16:12:07 +0000 (16:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 16:12:07 +0000 (16:12 +0000)
src/vpn/gnunet-service-vpn.c

index 7b29cbbd46868331e758edcd48fa377cf9784209..51b080266233d4e1b584d6713589a7570b2f0be1 100644 (file)
@@ -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))