summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-12-10 12:05:41 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-12-10 12:05:41 +0000
commitc8bc4d31d4686530b85d8b2a87eee9126189291d (patch)
treec9727fb8d3f7e8655c6265761d440aa22c0e2bfc
parentd8191d98a2bdc19162af3d513307c13f7af19e0c (diff)
No need to m_freem(m) if m is already NULL. dhartmei@ ok.
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 9571d574b34..49e575f136a 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.95 2001/12/06 02:12:52 itojun Exp $ */
+/* $OpenBSD: ip_input.c,v 1.96 2001/12/10 12:05:40 ho Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -396,7 +396,7 @@ ipv4_input(m)
if (pf_test(PF_IN, m->m_pkthdr.rcvif, &m) != PF_PASS)
goto bad;
if (m == NULL)
- goto bad;
+ return;
ip = mtod(m, struct ip *);
hlen = ip->ip_hl << 2;