summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf2.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-24 18:47:22 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-24 18:47:22 +0000
commit61ab84f835309755044ab8de90e71adf3436a141 (patch)
treeedb426faa05000d52a0ee7697b0129a8de7f34d8 /sys/kern/uipc_mbuf2.c
parent8bab8b19946f98d4be49345ca9c42e56674b65fb (diff)
Catch another weird case in diagnostics.
Diffstat (limited to 'sys/kern/uipc_mbuf2.c')
-rw-r--r--sys/kern/uipc_mbuf2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c
index b23d22598ab..32df3b90181 100644
--- a/sys/kern/uipc_mbuf2.c
+++ b/sys/kern/uipc_mbuf2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf2.c,v 1.9 2001/05/22 20:22:22 angelos Exp $ */
+/* $OpenBSD: uipc_mbuf2.c,v 1.10 2001/05/24 18:47:21 angelos Exp $ */
/* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.40 1999/04/01 00:23:25 thorpej Exp $ */
@@ -340,7 +340,9 @@ m_tag_delete_chain(m, t)
struct m_tag *p;
/* Be a bit paranoid */
- if (m->m_pkthdr.tags.tqh_last == NULL) {
+ if (m->m_pkthdr.tags.tqh_last == NULL ||
+ (m->m_pkthdr.tags.tqh_first == NULL &&
+ m->m_pkthdr.tags.tqh_last != &m->m_pkthdr.tags.tqh_first)) {
#ifdef DIAGNOSTIC
printf("m_tag_delete_chain: uninitialized tags on mbuf %p\n",
m);