diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-05-11 17:20:13 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-05-11 17:20:13 +0000 |
commit | c3c13d7458f1ad5ad8bf5d2194e6b97bc8889f5a (patch) | |
tree | 1e3e73f116d9558b78db79cd0fe2cd0ee7a88c8f /sys/netinet6/in6_gif.c | |
parent | 8819d23adec5eb15027bcf9a8e810b950082d96e (diff) |
Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ ok
Diffstat (limited to 'sys/netinet6/in6_gif.c')
-rw-r--r-- | sys/netinet6/in6_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_gif.c b/sys/netinet6/in6_gif.c index a6825ac73d9..771c2db26bf 100644 --- a/sys/netinet6/in6_gif.c +++ b/sys/netinet6/in6_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_gif.c,v 1.12 2001/04/14 00:30:59 angelos Exp $ */ +/* $OpenBSD: in6_gif.c,v 1.13 2001/05/11 17:20:12 aaron Exp $ */ /* $KAME: in6_gif.c,v 1.43 2001/01/22 07:27:17 itojun Exp $ */ /* @@ -122,7 +122,7 @@ in6_gif_output(ifp, family, m, rt) { if (m->m_len < sizeof(struct ip)) { m = m_pullup(m, sizeof(struct ip)); - if (!m) + if (m == NULL) return ENOBUFS; } hlen = (mtod(m, struct ip *)->ip_hl) << 2; |