PERFORCE change 39762 for review

Sam Leffler sam at FreeBSD.org
Wed Oct 15 14:04:42 PDT 2003


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

Change 39762 by sam at sam_ebb on 2003/10/15 14:04:23

	rtalloc1 may return NULL for a route so check before unlocking
	
	This should fix the panic reported by Yoshihide Sonoda when setting
	up an IPv6 ppp tunnel (waiting for confirmation).

Affected files ...

.. //depot/projects/netperf/sys/net/route.c#15 edit

Differences ...

==== //depot/projects/netperf/sys/net/route.c#15 (text+ko) ====

@@ -1000,7 +1000,8 @@
 			rt->rt_gwroute = 0;
 			return EDQUOT; /* failure */
 		}
-		RT_UNLOCK(rt->rt_gwroute);
+		if (rt->rt_gwroute != NULL)
+			RT_UNLOCK(rt->rt_gwroute);
 	}
 
 	/*


More information about the p4-projects mailing list