PERFORCE change 40337 for review

Sam Leffler sam at FreeBSD.org
Thu Oct 23 13:15:44 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=40337

Change 40337 by sam at sam_ebb on 2003/10/23 13:14:48

	rtalloc1 can return a null pointer; check before unlocking

Affected files ...

.. //depot/projects/netperf/sys/netinet6/in6_src.c#11 edit

Differences ...

==== //depot/projects/netperf/sys/netinet6/in6_src.c#11 (text+ko) ====

@@ -261,7 +261,8 @@
 			if (IN6_IS_ADDR_MULTICAST(dst)) {
 				ro->ro_rt = rtalloc1(&((struct route *)ro)
 						     ->ro_dst, 0, 0UL);
-				RT_UNLOCK(ro->ro_rt);
+				if (ro->ro_rt)
+					RT_UNLOCK(ro->ro_rt);
 			} else {
 				rtalloc((struct route *)ro);
 			}


More information about the p4-projects mailing list