From 9cce04b061b3601bcaca18f962e43ccfaf29c2bc Mon Sep 17 00:00:00 2001 From: "Alexander V. Chernikov" Date: Wed, 9 Dec 2015 22:09:33 +0000 Subject: [PATCH] Use correct lookup key for gif route lookups. This fixes r291993 change. --- sys/netinet6/in6_gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/in6_gif.c b/sys/netinet6/in6_gif.c index 76ab4005d46..e6901ba27b3 100644 --- a/sys/netinet6/in6_gif.c +++ b/sys/netinet6/in6_gif.c @@ -205,10 +205,10 @@ in6_gif_encapcheck(const struct mbuf *m, int off, int proto, void *arg) /* ingress filters on outer source */ if ((GIF2IFP(sc)->if_flags & IFF_LINK2) == 0) { struct nhop6_basic nh6; - struct in6_addr *dst; /* XXX empty scope id */ - if (fib6_lookup_nh_basic(sc->gif_fibnum, dst, 0, 0, 0, &nh6)!=0) + if (fib6_lookup_nh_basic(sc->gif_fibnum, &ip6->ip6_src, 0, 0, 0, + &nh6) != 0) return (0); if (nh6.nh_ifp != m->m_pkthdr.rcvif)