DragonFly BSD
DragonFly submit List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: fix for rt_newmaddmsg panic()


From: Andrew Atrens <atrens@xxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Feb 2005 16:48:35 -0500

whoops, the previous diff was reversed. :)
--- rtsock.c.old	2005-02-23 16:39:12.000000000 -0500
+++ rtsock.c	2005-02-23 16:39:22.000000000 -0500
@@ -972,7 +972,7 @@
 
 	bzero(&rtinfo, sizeof(struct rt_addrinfo));
 	rtinfo.rti_ifaaddr = ifma->ifma_addr;
-	if (ifp != NULL)
+	if (ifp != NULL && TAILQ_FIRST(&ifp->if_addrhead) != NULL)
 		rtinfo.rti_ifpaddr = TAILQ_FIRST(&ifp->if_addrhead)->ifa_addr;
 	else
 		rtinfo.rti_ifpaddr = NULL;


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