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