summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_esp_new.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-10-06 22:27:58 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-10-06 22:27:58 +0000
commitd6d99ea182b252301569e0091b5622009d56ba77 (patch)
tree55e22068b6abd87c2e5bb5affbdd1156bb7732aa /sys/netinet/ip_esp_new.c
parent404413a2ebe9dab38f180b107e50089bc731f179 (diff)
M_EXT isn't the only test for a cluster any more: also test ext_ref
Diffstat (limited to 'sys/netinet/ip_esp_new.c')
-rw-r--r--sys/netinet/ip_esp_new.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c
index 804af86d094..33e6ea4b831 100644
--- a/sys/netinet/ip_esp_new.c
+++ b/sys/netinet/ip_esp_new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp_new.c,v 1.45 1999/06/30 17:23:59 deraadt Exp $ */
+/* $OpenBSD: ip_esp_new.c,v 1.46 1999/10/06 22:27:57 jason Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -612,7 +612,8 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
mi = m;
while (mi != NULL &&
(!(mi->m_flags & M_EXT) ||
- mclrefcnt[mtocl(mi->m_ext.ext_buf)] <= 1))
+ (mi->m_ext.ext_ref == NULL &&
+ mclrefcnt[mtocl(mi->m_ext.ext_buf)] <= 1)))
{
mo = mi;
mi = mi->m_next;