diff options
author | 2001-12-10 12:05:40 +0000 | |
---|---|---|
committer | 2001-12-10 12:05:40 +0000 | |
commit | 8e3306207a096cd9ef4449e58114229650a8cdc2 (patch) | |
tree | 3ec054e40ba6787a14449f73ac00678e036793e4 | |
parent | use queue.h macros for TAILQ operations (diff) | |
download | wireguard-openbsd-8e3306207a096cd9ef4449e58114229650a8cdc2.tar.xz wireguard-openbsd-8e3306207a096cd9ef4449e58114229650a8cdc2.zip |
No need to m_freem(m) if m is already NULL. dhartmei@ ok.
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
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; |