summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-05-13 02:25:09 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-05-13 02:25:09 +0000
commit0bc558766296a9f3ec671e202e9481fb9578fc3f (patch)
tree7d19e29fed9a15f0cad9160bbbb3650bbdc2d614
parent496650d3371eebe17ca07f04b691b85bafafd1a4 (diff)
corrected the pointer value for ifp nd6_rtmsg
(from KIU Shueng Chuan) ok dhartmei
-rw-r--r--sys/netinet6/nd6_rtr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index 0ea0c3c9e5a..bd3e11eb7f7 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.23 2002/09/11 03:15:36 itojun Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.24 2003/05/13 02:25:08 itojun Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -441,7 +441,7 @@ nd6_rtmsg(cmd, rt)
info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
info.rti_info[RTAX_NETMASK] = rt_mask(rt);
info.rti_info[RTAX_IFP] =
- (struct sockaddr *)TAILQ_FIRST(&rt->rt_ifp->if_addrlist);
+ TAILQ_FIRST(&rt->rt_ifp->if_addrlist)->ifa_addr;
info.rti_info[RTAX_IFA] = rt->rt_ifa->ifa_addr;
rt_missmsg(cmd, &info, rt->rt_flags, 0);