summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6_rtr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index 2f2d2ff..2bf47d2 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -651,8 +651,10 @@ defrouter_select(void)
selected_dr = dr;
}
IF_AFDATA_UNLOCK(dr->ifp);
- if (ln != NULL)
+ if (ln != NULL) {
LLE_RUNLOCK(ln);
+ ln = NULL;
+ }
if (dr->installed && installed_dr == NULL)
installed_dr = dr;
OpenPOWER on IntegriCloud