diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-25 22:40:41 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-10-25 22:40:41 +0000 |
commit | 3772e553c8e8d2cf6048a8a4b076a5c560893782 (patch) | |
tree | 830e9a1a1dc7559f3ad7215b8869a1f36d01434c /sys/netinet | |
parent | 93bbae8a7d0bb52b29f54aef671a1d9c6ddf4e3e (diff) |
Do not null deref in the IPSEC+PMTU case; provos@ ok. Thanks to
andrews@crt.se for testing.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 64a7ce17ebd..527a002c377 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.82 2000/09/29 03:51:11 angelos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.83 2000/10/25 22:40:40 aaron Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -532,7 +532,7 @@ sendit: * If we're doing Path MTU discovery, we need to set DF unless * the route's MTU is locked. */ - if ((flags & IP_MTUDISC) && ro->ro_rt && + if ((flags & IP_MTUDISC) && ro && ro->ro_rt && (ro->ro_rt->rt_rmx.rmx_locks & RTV_MTU) == 0) ip->ip_off |= IP_DF; |