No need to unlock if error detected before locking.

Submitted by:	harti
This commit is contained in:
Jeffrey Hsu 2003-04-13 06:21:02 +00:00
parent fcbbbd4a4b
commit 983985c11e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113428

View File

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