diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2001-11-26 16:50:27 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2001-11-26 16:50:27 +0000 |
commit | 896dd9fb19132525f3f8e26d31780fdf568b1f6a (patch) | |
tree | 561564460397703baccc270988e5bf7122bb808e /sys/netinet/ip_output.c | |
parent | 8d170a2693ea47a2f5ea03c44511506673ec2596 (diff) |
add fastroute options similar to what is found in ipf
ok dhartmei@, frantzen@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 6a659520fc7..9514a052e50 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.139 2001/11/24 19:29:06 deraadt Exp $ */ +/* $OpenBSD: ip_output.c,v 1.140 2001/11/26 16:50:26 jasoni Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -554,6 +554,10 @@ sendit: m_freem(m); goto done; } + if (m == NULL) { + splx(s); + goto done; + } ip = mtod(m, struct ip *); hlen = ip->ip_hl << 2; #endif @@ -654,6 +658,9 @@ sendit: m_freem(m); goto done; } + if (m == NULL) + goto done; + ip = mtod(m, struct ip *); hlen = ip->ip_hl << 2; #endif |