]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/route.c
xnu-1228.9.59.tar.gz
[apple/xnu.git] / bsd / net / route.c
index ffd62033f8be663e111509e365154bbe9d6f8509..7f4ec5ac694ebb5e74550c9a9d48ba412ac4763d 100644 (file)
@@ -186,7 +186,7 @@ route_init(void)
 {
        int size;
 
 {
        int size;
 
-       PE_parse_boot_arg("rte_debug", &rte_debug);
+       PE_parse_boot_argn("rte_debug", &rte_debug, sizeof (rte_debug));
        if (rte_debug != 0)
                rte_debug |= RTD_DEBUG;
 
        if (rte_debug != 0)
                rte_debug |= RTD_DEBUG;
 
@@ -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.
         */
         * 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);
 
        /*
                rnh->rnh_close((struct radix_node *)rt, rnh);
 
        /*