diff options
author | andre <andre@FreeBSD.org> | 2005-09-26 20:35:45 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-09-26 20:35:45 +0000 |
commit | 41f17dbd3afa41283a8e6fbc9bfab94dd1b9f428 (patch) | |
tree | 861e174362af8957826d5ddd30064726590d6f2c /sys/netipsec | |
parent | 9eec5a615f043f20a152cad8b2e26ff3cda2c497 (diff) | |
download | FreeBSD-src-41f17dbd3afa41283a8e6fbc9bfab94dd1b9f428.zip FreeBSD-src-41f17dbd3afa41283a8e6fbc9bfab94dd1b9f428.tar.gz |
Replace custom mbuf writeability test with generic M_WRITABLE() test
covering all edge cases too.
Sponsored by: TCP/IP Optimization Fundraise 2005
Diffstat (limited to 'sys/netipsec')
-rw-r--r-- | sys/netipsec/ipsec_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec_mbuf.c b/sys/netipsec/ipsec_mbuf.c index f44ff7a..ade7d33 100644 --- a/sys/netipsec/ipsec_mbuf.c +++ b/sys/netipsec/ipsec_mbuf.c @@ -92,7 +92,7 @@ m_clone(struct mbuf *m0) /* * Writable mbufs are left alone (for now). */ - if (!MEXT_IS_REF(m)) { + if (M_WRITABLE(m)) { mprev = m; continue; } |