From ea6e25fb9c9c50a1c2e788236d59d28e19dc9cc6 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sat, 24 Oct 2015 12:33:17 +0000 Subject: Convert some if_ref() to if_get(). ok claudio@ --- sys/netinet6/in6_src.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet6/in6_src.c') diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index e4cb8674194..dfe5791948f 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_src.c,v 1.65 2015/10/22 16:33:32 mpi Exp $ */ +/* $OpenBSD: in6_src.c,v 1.66 2015/10/24 12:33:16 mpi Exp $ */ /* $KAME: in6_src.c,v 1.36 2001/02/06 04:08:17 itojun Exp $ */ /* @@ -457,7 +457,7 @@ in6_selectif(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, return (rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH); if (rt != NULL) - *retifp = if_ref(rt->rt_ifp); + *retifp = if_get(rt->rt_ifidx); return (0); } -- cgit v1.2.3