mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
No need to unlock if error detected before locking.
Submitted by: harti
This commit is contained in:
parent
fcbbbd4a4b
commit
983985c11e
1 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue