Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Reduce the number of return points
details: https://anonhg.NetBSD.org/src/rev/70bc299dba54
branches: trunk
changeset: 348650:70bc299dba54
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Nov 01 10:32:57 2016 +0000
description:
Reduce the number of return points
No functional change.
diffstat:
sys/netinet6/ip6_input.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (36 lines):
diff -r be7fdbe8f34a -r 70bc299dba54 sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c Mon Oct 31 23:53:12 2016 +0000
+++ b/sys/netinet6/ip6_input.c Tue Nov 01 10:32:57 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6_input.c,v 1.169 2016/10/18 07:30:31 ozaki-r Exp $ */
+/* $NetBSD: ip6_input.c,v 1.170 2016/11/01 10:32:57 ozaki-r Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.169 2016/10/18 07:30:31 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.170 2016/11/01 10:32:57 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_gateway.h"
@@ -701,14 +701,11 @@
if (error != 0) {
IP6_STATINC(IP6_STAT_CANTFORWARD);
- m_freem(m);
- return;
+ goto bad;
}
}
- if (!ours) {
- m_freem(m);
- return;
- }
+ if (!ours)
+ goto bad;
} else if (!ours) {
ip6_forward(m, srcrt);
return;
Home |
Main Index |
Thread Index |
Old Index