Author: bz
Date: Sun May 2 15:55:29 2010
New Revision: 207512
URL: http://svn.freebsd.org/changeset/base/207512
Log:
MFC r206989:
Avoid memory access after free. Use the (shortend) copy for the
ipsec mtu lookup as well.
PR: kern/145736
Submitted by: Peter Molnar (peter molnar.cc)
Modified:
stable/8/sys/netinet/ip_input.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
stable/8/sys/geom/sched/ (props changed)
Modified: stable/8/sys/netinet/ip_input.c
==============================================================================
--- stable/8/sys/netinet/ip_input.c Sun May 2 14:46:05 2010
(r207511)
+++ stable/8/sys/netinet/ip_input.c Sun May 2 15:55:29 2010
(r207512)
@@ -1590,7 +1590,7 @@ ip_forward(struct mbuf *m, int srcrt)
* If IPsec is configured for this path,
* override any possibly mtu value set by ip_output.
*/
- mtu = ip_ipsec_mtu(m, mtu);
+ mtu = ip_ipsec_mtu(mcopy, mtu);
#endif /* IPSEC */
/*
* If the MTU was set before make sure we are below the
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"