svn commit: r260218 - head/sys/netinet6

From: Andrey V. Elsukov <ae_at_FreeBSD.org>
Date: Fri, 3 Jan 2014 02:40:57 +0000 (UTC)
Author: ae
Date: Fri Jan  3 02:40:56 2014
New Revision: 260218
URL: http://svnweb.freebsd.org/changeset/base/260218

Log:
  Use pointer to struct sockaddr_in6 in lla_lookup() call.
  This prevents from triggering KASSERT in in6_lltable_lookup.

Modified:
  head/sys/netinet6/in6_src.c

Modified: head/sys/netinet6/in6_src.c
==============================================================================
--- head/sys/netinet6/in6_src.c	Fri Jan  3 02:32:05 2014	(r260217)
+++ head/sys/netinet6/in6_src.c	Fri Jan  3 02:40:56 2014	(r260218)
_at__at_ -621,7 +621,7 _at__at_ selectroute(struct sockaddr_in6 *dstsock
 		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);
Received on Fri Jan 03 2014 - 02:40:57 UTC