summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ipip.c
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2001-05-11 17:20:09 +0000
committeraaron <aaron@openbsd.org>2001-05-11 17:20:09 +0000
commitcd37de7620988c0c47c4d9e96df12ac647d7b4d2 (patch)
treef124b652ca64da3446129fac1db2b3edf96e2ee0 /sys/netinet/ip_ipip.c
parent-1 -> MAP_FAILED. (diff)
downloadwireguard-openbsd-cd37de7620988c0c47c4d9e96df12ac647d7b4d2.tar.xz
wireguard-openbsd-cd37de7620988c0c47c4d9e96df12ac647d7b4d2.zip
Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ ok
Diffstat (limited to 'sys/netinet/ip_ipip.c')
-rw-r--r--sys/netinet/ip_ipip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipip.c b/sys/netinet/ip_ipip.c
index 02ab27cd7f2..40542d7cbcd 100644
--- a/sys/netinet/ip_ipip.c
+++ b/sys/netinet/ip_ipip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipip.c,v 1.13 2001/04/14 00:30:59 angelos Exp $ */
+/* $OpenBSD: ip_ipip.c,v 1.14 2001/05/11 17:20:11 aaron Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -190,7 +190,7 @@ ipip_input(struct mbuf *m, int iphlen)
/* Bring the IP header in the first mbuf, if not there already */
if (m->m_len < hlen)
{
- if ((m = m_pullup(m, hlen)) == 0)
+ if ((m = m_pullup(m, hlen)) == NULL)
{
DPRINTF(("ipip_input(): m_pullup() failed\n"));
ipipstat.ipips_hdrops++;
@@ -250,7 +250,7 @@ ipip_input(struct mbuf *m, int iphlen)
/* Bring the inner IP header in the first mbuf, if not there already */
if (m->m_len < hlen)
{
- if ((m = m_pullup(m, hlen)) == 0)
+ if ((m = m_pullup(m, hlen)) == NULL)
{
DPRINTF(("ipip_input(): m_pullup() failed\n"));
ipipstat.ipips_hdrops++;