Use pointer to struct sockaddr_in6 in lla_lookup() call.

This prevents from triggering KASSERT in in6_lltable_lookup.
This commit is contained in:
Andrey V. Elsukov 2014-01-03 02:40:56 +00:00
parent e2d14d9317
commit b88aef1dcf

View File

@ -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);