diff options
-rw-r--r-- | sys/netinet/ip_esp_new.c | 5 | ||||
-rw-r--r-- | sys/netinet/ip_esp_old.c | 5 |
2 files changed, 6 insertions, 4 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; diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c index 349135df1e8..0d3f876455d 100644 --- a/sys/netinet/ip_esp_old.c +++ b/sys/netinet/ip_esp_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp_old.c,v 1.35 1999/06/18 07:24:04 deraadt Exp $ */ +/* $OpenBSD: ip_esp_old.c,v 1.36 1999/10/06 22:27:57 jason Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -451,7 +451,8 @@ esp_old_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; |