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)
This commit is contained in:
parent
f4eb99be97
commit
8b5076c9df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user