Use pointer to struct sockaddr_in6 in lla_lookup() call.
This prevents from triggering KASSERT in in6_lltable_lookup.
This commit is contained in:
parent
e2d14d9317
commit
b88aef1dcf
@ -621,7 +621,7 @@ selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
|
||||
rt = ron->ro_rt;
|
||||
ifp = rt->rt_ifp;
|
||||
IF_AFDATA_RLOCK(ifp);
|
||||
la = lla_lookup(LLTABLE6(ifp), 0, (struct sockaddr *)&sin6_next->sin6_addr);
|
||||
la = lla_lookup(LLTABLE6(ifp), 0, (struct sockaddr *)sin6_next);
|
||||
IF_AFDATA_RUNLOCK(ifp);
|
||||
if (la != NULL)
|
||||
LLE_RUNLOCK(la);
|
||||
|
Loading…
x
Reference in New Issue
Block a user