X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..593a1d5fd87cdf5b46dd5fcb84467b432cea0f91:/bsd/net/route.c diff --git a/bsd/net/route.c b/bsd/net/route.c index ffd62033f..7f4ec5ac6 100644 --- a/bsd/net/route.c +++ b/bsd/net/route.c @@ -186,7 +186,7 @@ route_init(void) { 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; @@ -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); /*