summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-12-13 00:18:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-12-13 00:18:47 +0000
commit571eb39e8ddbe330277d514debe17f87670a3eca (patch)
tree96d55a0a0e8a5f72f488a5c26c9541f0c1380569 /sys/kern/uipc_mbuf.c
parent75eb492fa92e17c9ae576ca736fcb998846ffefa (diff)
note to everyone: nitems(pointer) is 0, not what you want
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 7259693222c..19a146798f3 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.109 2008/12/11 16:45:45 deraadt Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.110 2008/12/13 00:18:46 deraadt Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -324,7 +324,7 @@ m_cldrop(struct ifnet *ifp, int pi)
liveticks = ticks;
TAILQ_FOREACH(aifp, &ifnet, if_list) {
mclp = aifp->if_data.ifi_mclpool;
- for (i = 0; i < nitems(mclp); i++)
+ for (i = 0; i < nitems(aifp->if_data.ifi_mclpool); i++)
mclp[i].mcl_hwm =
max(mclp[i].mcl_hwm / 2,mclp[i].mcl_lwm);
}