* put_route() now survives being called with a NULL domain (TCP might do this).

* This fixes bug #6239.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37583 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-07-19 10:58:59 +00:00
parent 470934be8c
commit 0fc7ab7be6

View File

@ -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);