From 099d0bd34ba731cea8085d336132e1504bc33dfb Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Thu, 18 Dec 2008 19:09:14 +0000 Subject: [PATCH] Only unlock the llentry if it is actually valid. Reported by: ed --- sys/netinet6/ip6_input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 54688e22b17..228777bbf09 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -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 &&