summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_ipsec.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-10-23 20:35:40 +0000
committerbz <bz@FreeBSD.org>2010-10-23 20:35:40 +0000
commitde9392f9e014151a889a4d86de9f6736a94f158e (patch)
treef5d45570646bf96cfcb9125ee6a33290a6a158e2 /sys/netinet6/ip6_ipsec.c
parent1f7e8301f37d1383a1b54e2fd57a8f750ee42848 (diff)
downloadFreeBSD-src-de9392f9e014151a889a4d86de9f6736a94f158e.zip
FreeBSD-src-de9392f9e014151a889a4d86de9f6736a94f158e.tar.gz
Make the IPsec SADB embedded route cache a union to be able to hold both the
legacy and IPv6 route destination address. Previously in case of IPv6, there was a memory overwrite due to not enough space for the IPv6 address. PR: kern/122565 MFC After: 2 weeks
Diffstat (limited to 'sys/netinet6/ip6_ipsec.c')
-rw-r--r--sys/netinet6/ip6_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_ipsec.c b/sys/netinet6/ip6_ipsec.c
index 48d9162..96b09ef 100644
--- a/sys/netinet6/ip6_ipsec.c
+++ b/sys/netinet6/ip6_ipsec.c
@@ -366,7 +366,7 @@ ip6_ipsec_mtu(struct mbuf *m)
if (sp->req != NULL &&
sp->req->sav != NULL &&
sp->req->sav->sah != NULL) {
- ro = &sp->req->sav->sah->sa_route;
+ ro = &sp->req->sav->sah->route_cache.sa_route;
if (ro->ro_rt && ro->ro_rt->rt_ifp) {
mtu =
ro->ro_rt->rt_rmx.rmx_mtu ?
OpenPOWER on IntegriCloud