-fix ret vals
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 18:30:56 +0000 (18:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 18:30:56 +0000 (18:30 +0000)
src/vpn/gnunet-service-vpn.c

index 51b080266233d4e1b584d6713589a7570b2f0be1..58c7f5257436bd6639b5bc9a53ad817306ee8608 100644 (file)
@@ -892,13 +892,13 @@ route_packet (struct DestinationEntry *destination,
       {
        /* blame kernel? */
        GNUNET_break (0);
-       return GNUNET_SYSERR;
+       return;
       }
       udp = payload;
       if (udp->len < sizeof (struct GNUNET_TUN_UdpHeader))
       {
        GNUNET_break_op (0);
-       return GNUNET_SYSERR;
+       return;
       }
       spt = ntohs (udp->spt);
       dpt = ntohs (udp->dpt);
@@ -917,13 +917,13 @@ route_packet (struct DestinationEntry *destination,
       {
        /* blame kernel? */
        GNUNET_break (0);
-       return GNUNET_SYSERR;
-      }
+       return;
+      }      
       tcp = payload;
       if (tcp->off * 4 < sizeof (struct GNUNET_TUN_TcpHeader))
       {
        GNUNET_break_op (0);
-       return GNUNET_SYSERR;
+       return;
       }
       spt = ntohs (tcp->spt);
       dpt = ntohs (tcp->dpt);