summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_esp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_esp.c')
-rw-r--r--sys/netinet/ip_esp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index d927bd7525e..faedc72e53f 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.58 2001/05/13 15:39:27 deraadt Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.59 2001/05/17 18:41:47 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -823,9 +823,7 @@ esp_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
*/
mi = m;
while (mi != NULL &&
- (!(mi->m_flags & M_EXT) ||
- (mi->m_ext.ext_ref == NULL &&
- mclrefcnt[mtocl(mi->m_ext.ext_buf)] <= 1)))
+ (!(mi->m_flags & M_EXT) || !MCLISREFERENCED(mi)))
{
mo = mi;
mi = mi->m_next;