Only unlock the llentry if it is actually valid.

Reported by:	ed
This commit is contained in:
Bjoern A. Zeeb 2008-12-18 19:09:14 +00:00
parent 59a34231a4
commit 099d0bd34b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186293

View File

@ -567,7 +567,8 @@ ip6_input(struct mbuf *m)
LLE_RUNLOCK(lle);
goto hbhcheck;
}
LLE_RUNLOCK(lle);
if (lle != NULL)
LLE_RUNLOCK(lle);
if (V_ip6_forward_rt.ro_rt != NULL &&
(V_ip6_forward_rt.ro_rt->rt_flags & RTF_UP) != 0 &&