summaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_input.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-05-11 17:20:13 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-05-11 17:20:13 +0000
commitc3c13d7458f1ad5ad8bf5d2194e6b97bc8889f5a (patch)
tree1e3e73f116d9558b78db79cd0fe2cd0ee7a88c8f /sys/netinet6/ip6_input.c
parent8819d23adec5eb15027bcf9a8e810b950082d96e (diff)
Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ ok
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r--sys/netinet6/ip6_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 533b73a7ec2..888ab5a1136 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_input.c,v 1.29 2001/03/30 11:09:01 itojun Exp $ */
+/* $OpenBSD: ip6_input.c,v 1.30 2001/05/11 17:20:12 aaron Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -260,7 +260,7 @@ ip6_input(m)
if (m->m_len < sizeof(struct ip6_hdr)) {
struct ifnet *inifp;
inifp = m->m_pkthdr.rcvif;
- if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == 0) {
+ if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) {
ip6stat.ip6s_toosmall++;
in6_ifstat_inc(inifp, ifs6_in_hdrerr);
return;