From 9c1381dea8109a3ac2ff709972dfbad2d82507fc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 26 Jan 2012 18:30:56 +0000 Subject: [PATCH] -fix ret vals --- src/vpn/gnunet-service-vpn.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 51b080266..58c7f5257 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c @@ -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); -- 2.25.1