diff --git a/src/add-ons/kernel/network/stack/routes.cpp b/src/add-ons/kernel/network/stack/routes.cpp index 9acd7ef6fc..810ffb6e5d 100644 --- a/src/add-ons/kernel/network/stack/routes.cpp +++ b/src/add-ons/kernel/network/stack/routes.cpp @@ -663,6 +663,9 @@ void put_route(struct net_domain* _domain, net_route* route) { struct net_domain_private* domain = (net_domain_private*)_domain; + if (domain == NULL || route == NULL) + return; + RecursiveLocker locker(domain->lock); put_route_internal(domain, (net_route*)route);