Date: Mon, 7 Apr 2014 12:59:30 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r264226 - stable/8/sys/netinet6 Message-ID: <201404071259.s37CxUD5040731@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Mon Apr 7 12:59:30 2014 New Revision: 264226 URL: http://svnweb.freebsd.org/changeset/base/264226 Log: MFC r263969,263971: Don't generate an ICMPv6 error message if packet was consumed by filter. Remove unused label. Sponsored by: Yandex LLC Modified: stable/8/sys/netinet6/ip6_forward.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/netinet6/ (props changed) Modified: stable/8/sys/netinet6/ip6_forward.c ============================================================================== --- stable/8/sys/netinet6/ip6_forward.c Mon Apr 7 12:59:17 2014 (r264225) +++ stable/8/sys/netinet6/ip6_forward.c Mon Apr 7 12:59:30 2014 (r264226) @@ -556,10 +556,8 @@ skip_routing: /* Run through list of hooks for output packets. */ error = pfil_run_hooks(&V_inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT, NULL); - if (error != 0) - goto senderr; - if (m == NULL) - goto freecopy; + if (error != 0 || m == NULL) + goto freecopy; /* consumed by filter */ ip6 = mtod(m, struct ip6_hdr *); pass: @@ -578,7 +576,6 @@ pass: } } -senderr: if (mcopy == NULL) goto out; switch (error) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404071259.s37CxUD5040731>