diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-18 06:27:16 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-18 06:27:16 +0000 |
commit | 4d0720add84ceefb5545073475eb40ed359141c3 (patch) | |
tree | 0b352496d38556ce906d0ea5afbbf6626a359a1a /sys | |
parent | 8f1072169ecefa9766fcc475b6a0aa0d0b0454cf (diff) |
try to avoid useless m_pullup2
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/ip6_input.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 71456275768..f0c5b7c454e 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.15 2000/06/18 06:24:45 itojun Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.16 2000/06/18 06:27:15 itojun Exp $ */ /* $KAME: ip6_input.c,v 1.94 2000/06/13 10:06:19 jinmei Exp $ */ /* @@ -221,9 +221,11 @@ ip6intr() l = MCLBYTES; else l = m->m_pkthdr.len; - m = m_pullup2(m, l); - if (!m) - continue; + if (l > m->m_len) { + m = m_pullup2(m, l); + if (!m) + continue; + } } #endif ip6_input(m); |