]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/route.c
xnu-1228.3.13.tar.gz
[apple/xnu.git] / bsd / net / route.c
index ffd62033f8be663e111509e365154bbe9d6f8509..e00ce3eaa10976ab53cd3922a2438c7cfd8c9ec8 100644 (file)
@@ -382,7 +382,7 @@ rtfree_locked(struct rtentry *rt)
         * close routine typically issues RTM_DELETE which clears the RTF_UP
         * flag on the entry so that the code below reclaims the storage.
         */
-       if (rnh->rnh_close && rt->rt_refcnt == 0)
+       if (rnh && rnh->rnh_close && rt->rt_refcnt == 0)
                rnh->rnh_close((struct radix_node *)rt, rnh);
 
        /*