Subject: Re: pim6sd bug?
To: None <tech-net@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: tech-net
Date: 02/21/2006 21:07:00
Jeff Ito <ijk@speakeasy.net> writes:

> This equates to rtsock.c:957
>
> static int
> sysctl_iflist(int af, struct walkarg *w, int type)
> {
>         struct ifnet *ifp;
>         struct ifaddr *ifa;
>         struct  rt_addrinfo info;
>         int     len, error = 0;
>
>         memset(&info, 0, sizeof(info));
>         IFNET_FOREACH(ifp) {
>                 if (w->w_arg && w->w_arg != ifp->if_index)
>                         continue;
>                 ifa = TAILQ_FIRST(&ifp->if_addrlist);

                  if (ifa == NULL)
                  	continue;

>                 ifpaddr = ifa->ifa_addr;     <<--<<--- line 957
>                 switch (type) {
>                 case NET_RT_IFLIST:

Maybe this fixes it... not sure.

-- 
  Rui Paulo			<rpaulo@{NetBSD{,-PT}.org,fnop.net}>