diff options
Diffstat (limited to 'sys/netinet6/ipsec.c')
-rw-r--r-- | sys/netinet6/ipsec.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/netinet6/ipsec.c b/sys/netinet6/ipsec.c index 87e771f..33a66cc 100644 --- a/sys/netinet6/ipsec.c +++ b/sys/netinet6/ipsec.c @@ -3219,14 +3219,11 @@ ipsec_copypkt(m) for (n = m, mpp = &m; n; n = n->m_next) { if (n->m_flags & M_EXT) { /* - * Make a copy only if there are more than one references - * to the cluster. + * Make a copy only if there are more than one + * references to the cluster. * XXX: is this approach effective? */ - if ( - n->m_ext.ext_free || - MEXT_IS_REF(n) - ) + if (n->m_ext.ext_type != EXT_CLUSTER || MEXT_IS_REF(n)) { int remain, copied; struct mbuf *mm; |