Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 fix invalid pointer setting on RA reception. f...



details:   https://anonhg.NetBSD.org/src/rev/b343e6b0701c
branches:  trunk
changeset: 546909:b343e6b0701c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu May 08 20:08:52 2003 +0000

description:
fix invalid pointer setting on RA reception.  from kiu shueng chuan via kame

diffstat:

 sys/netinet6/nd6_rtr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 85a497b761b5 -r b343e6b0701c sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c    Thu May 08 18:59:06 2003 +0000
+++ b/sys/netinet6/nd6_rtr.c    Thu May 08 20:08:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_rtr.c,v 1.36 2002/09/11 02:46:46 itojun Exp $      */
+/*     $NetBSD: nd6_rtr.c,v 1.37 2003/05/08 20:08:52 itojun Exp $      */
 /*     $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $        */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.36 2002/09/11 02:46:46 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.37 2003/05/08 20:08:52 itojun Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -446,7 +446,7 @@
        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);



Home | Main Index | Thread Index | Old Index