diff options
author | 2000-10-25 22:40:40 +0000 | |
---|---|---|
committer | 2000-10-25 22:40:40 +0000 | |
commit | e7017d7f7cb45c2a0554c45e8aba1e71b6a3af4a (patch) | |
tree | 8be9e4ae481b17ee0e6659ee7f071ea686beeca0 | |
parent | silence the "no multicast" warning for IFT_ENC, too (diff) | |
download | wireguard-openbsd-e7017d7f7cb45c2a0554c45e8aba1e71b6a3af4a.tar.xz wireguard-openbsd-e7017d7f7cb45c2a0554c45e8aba1e71b6a3af4a.zip |
Do not null deref in the IPSEC+PMTU case; provos@ ok. Thanks to
andrews@crt.se for testing.
-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; |