summaryrefslogtreecommitdiff
path: root/sys/netinet/fil.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/netinet/fil.c
parent8819d23adec5eb15027bcf9a8e810b950082d96e (diff)
Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ ok
Diffstat (limited to 'sys/netinet/fil.c')
-rw-r--r--sys/netinet/fil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/fil.c b/sys/netinet/fil.c
index 8bd963cdbee..5d6a67fb890 100644
--- a/sys/netinet/fil.c
+++ b/sys/netinet/fil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fil.c,v 1.29 2001/05/08 19:58:01 fgsch Exp $ */
+/* $OpenBSD: fil.c,v 1.30 2001/05/11 17:20:11 aaron Exp $ */
/*
* Copyright (C) 1993-2000 by Darren Reed.
@@ -870,7 +870,7 @@ int out;
ip = (ip_t *)hbuf;
# else /* __ sgi */
# ifndef linux
- if ((*mp = m_pullup(m, up)) == 0) {
+ if ((*mp = m_pullup(m, up)) == NULL) {
ATOMIC_INCL(frstats[out].fr_pull[1]);
return -1;
} else {