No need to unlock if error detected before locking.
Submitted by: harti
This commit is contained in:
parent
fcbbbd4a4b
commit
983985c11e
@ -544,8 +544,10 @@ rtrequest1(req, info, ret_nrt)
|
|||||||
/*
|
/*
|
||||||
* Find the correct routing tree to use for this Address Family
|
* Find the correct routing tree to use for this Address Family
|
||||||
*/
|
*/
|
||||||
if ((rnh = rt_tables[dst->sa_family]) == 0)
|
if ((rnh = rt_tables[dst->sa_family]) == 0) {
|
||||||
senderr(EAFNOSUPPORT);
|
splx(s);
|
||||||
|
return (EAFNOSUPPORT);
|
||||||
|
}
|
||||||
RADIX_NODE_HEAD_LOCK(rnh);
|
RADIX_NODE_HEAD_LOCK(rnh);
|
||||||
/*
|
/*
|
||||||
* If we are adding a host route then we don't want to put
|
* If we are adding a host route then we don't want to put
|
||||||
|
Loading…
x
Reference in New Issue
Block a user