diff options
author | Cy Schubert <cy@FreeBSD.org> | 2020-04-19 17:01:14 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2020-04-19 17:01:14 +0000 |
commit | 486d32182accb50ceb8154c24564bd1d982cac10 (patch) | |
tree | 394b3361a8f6af7ac7e3c7cf8a6953df0f65a6de /sys/contrib/ipfilter/netinet | |
parent | 2885ae0c3ca3ea93e1f227ecb3003db2e94f4129 (diff) | |
download | src-486d32182accb50ceb8154c24564bd1d982cac10.tar.gz src-486d32182accb50ceb8154c24564bd1d982cac10.zip |
fib4_free_nh_ext is an empty function. It does nothing. Don't call it.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=360100
Diffstat (limited to 'sys/contrib/ipfilter/netinet')
-rw-r--r-- | sys/contrib/ipfilter/netinet/ip_fil_freebsd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c b/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c index 8843912cd8f0..fc2817e93ce7 100644 --- a/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c +++ b/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c @@ -699,7 +699,6 @@ ipf_fastroute(m0, mpp, fin, fdp) struct ifnet *ifp, *sifp; struct sockaddr_in dst; struct nhop4_extended nh4; - int has_nhop = 0; u_long fibnum = 0; u_short ip_off; frdest_t node; @@ -782,7 +781,6 @@ ipf_fastroute(m0, mpp, fin, fdp) goto bad; } - has_nhop = 1; if (ifp == NULL) ifp = nh4.nh_ifp; if (nh4.nh_flags & NHF_GATEWAY) @@ -926,9 +924,6 @@ done: else V_ipfmain.ipf_frouteok[1]++; - if (has_nhop) - fib4_free_nh_ext(fibnum, &nh4); - return 0; bad: if (error == EMSGSIZE) { |