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

View File

@ -567,7 +567,8 @@ passin:
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 &&